1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "chrome/browser/chromeos/frame/dom_browser_view.h" 6 7 #include "chrome/browser/chromeos/frame/dom_browser_view_layout.h" 8 #include "ui/gfx/rect.h" 9 #include "views/widget/widget.h" 10 11 namespace chromeos { 12 13 // DOMBrowserView, public ------------------------------------------------------ 14 15 DOMBrowserView::DOMBrowserView(Browser* browser) 16 : chromeos::BrowserView(browser) {} 17 18 DOMBrowserView::~DOMBrowserView() {} 19 20 // static 21 BrowserWindow* DOMBrowserView::CreateDOMWindow(Browser* browser) { 22 DOMBrowserView* view = new DOMBrowserView(browser); 23 BrowserFrame::Create(view, browser->profile()); 24 return view; 25 } 26 27 void DOMBrowserView::WindowMoveOrResizeStarted() {} 28 29 gfx::Rect DOMBrowserView::GetToolbarBounds() const { 30 return gfx::Rect(); 31 } 32 33 int DOMBrowserView::GetTabStripHeight() const { 34 return 0; 35 } 36 37 bool DOMBrowserView::IsTabStripVisible() const { 38 return false; 39 } 40 41 bool DOMBrowserView::AcceleratorPressed(const views::Accelerator& accelerator) { 42 return false; 43 } 44 45 void DOMBrowserView::SetStarredState(bool is_starred) {} 46 47 LocationBar* DOMBrowserView::GetLocationBar() const { 48 return NULL; 49 } 50 51 void DOMBrowserView::SetFocusToLocationBar(bool select_all) {} 52 53 void DOMBrowserView::UpdateReloadStopState(bool is_loading, bool force) {} 54 55 void DOMBrowserView::UpdateToolbar(TabContentsWrapper* contents, 56 bool should_restore_state) {} 57 58 void DOMBrowserView::FocusToolbar() {} 59 60 void DOMBrowserView::FocusAppMenu() {} 61 62 void DOMBrowserView::ShowBookmarkBubble(const GURL& url, 63 bool already_bookmarked) {} 64 65 void DOMBrowserView::ShowAppMenu() {} 66 67 LocationBarView* DOMBrowserView::GetLocationBarView() const { 68 return NULL; 69 } 70 71 ToolbarView* DOMBrowserView::GetToolbarView() const { 72 return NULL; 73 } 74 75 bool DOMBrowserView::ShouldShowOffTheRecordAvatar() const { 76 return false; 77 } 78 79 bool DOMBrowserView::GetAcceleratorForCommandId(int command_id, 80 ui::Accelerator* accelerator) { 81 return GetWidget()->GetAccelerator(command_id, accelerator); 82 } 83 84 bool DOMBrowserView::IsToolbarVisible() const { 85 return false; 86 } 87 88 // DOMBrowserView, protected --------------------------------------------------- 89 90 void DOMBrowserView::GetAccessiblePanes( 91 std::vector<AccessiblePaneView*>* panes) {} 92 93 void DOMBrowserView::PaintChildren(gfx::Canvas* canvas) { 94 views::ClientView::PaintChildren(canvas); 95 } 96 97 void DOMBrowserView::InitTabStrip(TabStripModel* model) {} 98 99 views::LayoutManager* DOMBrowserView::CreateLayoutManager() const { 100 return new DOMBrowserViewLayout; 101 } 102 103 ToolbarView* DOMBrowserView::CreateToolbar() const { 104 return NULL; 105 } 106 107 void DOMBrowserView::LoadingAnimationCallback() {} 108 109 } // namespace chromeos 110