• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
DOMBrowserView(Browser * browser)15 DOMBrowserView::DOMBrowserView(Browser* browser)
16     : chromeos::BrowserView(browser) {}
17 
~DOMBrowserView()18 DOMBrowserView::~DOMBrowserView() {}
19 
20 // static
CreateDOMWindow(Browser * browser)21 BrowserWindow* DOMBrowserView::CreateDOMWindow(Browser* browser) {
22   DOMBrowserView* view = new DOMBrowserView(browser);
23   BrowserFrame::Create(view, browser->profile());
24   return view;
25 }
26 
WindowMoveOrResizeStarted()27 void DOMBrowserView::WindowMoveOrResizeStarted() {}
28 
GetToolbarBounds() const29 gfx::Rect DOMBrowserView::GetToolbarBounds() const {
30   return gfx::Rect();
31 }
32 
GetTabStripHeight() const33 int DOMBrowserView::GetTabStripHeight() const {
34   return 0;
35 }
36 
IsTabStripVisible() const37 bool DOMBrowserView::IsTabStripVisible() const {
38   return false;
39 }
40 
AcceleratorPressed(const views::Accelerator & accelerator)41 bool DOMBrowserView::AcceleratorPressed(const views::Accelerator& accelerator) {
42   return false;
43 }
44 
SetStarredState(bool is_starred)45 void DOMBrowserView::SetStarredState(bool is_starred) {}
46 
GetLocationBar() const47 LocationBar* DOMBrowserView::GetLocationBar() const {
48   return NULL;
49 }
50 
SetFocusToLocationBar(bool select_all)51 void DOMBrowserView::SetFocusToLocationBar(bool select_all) {}
52 
UpdateReloadStopState(bool is_loading,bool force)53 void DOMBrowserView::UpdateReloadStopState(bool is_loading, bool force) {}
54 
UpdateToolbar(TabContentsWrapper * contents,bool should_restore_state)55 void DOMBrowserView::UpdateToolbar(TabContentsWrapper* contents,
56                                 bool should_restore_state) {}
57 
FocusToolbar()58 void DOMBrowserView::FocusToolbar() {}
59 
FocusAppMenu()60 void DOMBrowserView::FocusAppMenu() {}
61 
ShowBookmarkBubble(const GURL & url,bool already_bookmarked)62 void DOMBrowserView::ShowBookmarkBubble(const GURL& url,
63                                         bool already_bookmarked) {}
64 
ShowAppMenu()65 void DOMBrowserView::ShowAppMenu() {}
66 
GetLocationBarView() const67 LocationBarView* DOMBrowserView::GetLocationBarView() const {
68   return NULL;
69 }
70 
GetToolbarView() const71 ToolbarView* DOMBrowserView::GetToolbarView() const {
72   return NULL;
73 }
74 
ShouldShowOffTheRecordAvatar() const75 bool DOMBrowserView::ShouldShowOffTheRecordAvatar() const {
76   return false;
77 }
78 
GetAcceleratorForCommandId(int command_id,ui::Accelerator * accelerator)79 bool DOMBrowserView::GetAcceleratorForCommandId(int command_id,
80                                                 ui::Accelerator* accelerator) {
81   return GetWidget()->GetAccelerator(command_id, accelerator);
82 }
83 
IsToolbarVisible() const84 bool DOMBrowserView::IsToolbarVisible() const {
85   return false;
86 }
87 
88 // DOMBrowserView, protected ---------------------------------------------------
89 
GetAccessiblePanes(std::vector<AccessiblePaneView * > * panes)90 void DOMBrowserView::GetAccessiblePanes(
91     std::vector<AccessiblePaneView*>* panes) {}
92 
PaintChildren(gfx::Canvas * canvas)93 void DOMBrowserView::PaintChildren(gfx::Canvas* canvas) {
94   views::ClientView::PaintChildren(canvas);
95 }
96 
InitTabStrip(TabStripModel * model)97 void DOMBrowserView::InitTabStrip(TabStripModel* model) {}
98 
CreateLayoutManager() const99 views::LayoutManager* DOMBrowserView::CreateLayoutManager() const {
100   return new DOMBrowserViewLayout;
101 }
102 
CreateToolbar() const103 ToolbarView* DOMBrowserView::CreateToolbar() const {
104   return NULL;
105 }
106 
LoadingAnimationCallback()107 void DOMBrowserView::LoadingAnimationCallback() {}
108 
109 }  // namespace chromeos
110