Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: chrome/browser/chromeos/frame/browser_view.h

Issue 6904160: Implement new gray mock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review nits Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 // and adds the system context menu to the remaining arae of the titlebar. 40 // and adds the system context menu to the remaining arae of the titlebar.
41 class BrowserView : public ::BrowserView, 41 class BrowserView : public ::BrowserView,
42 public views::ContextMenuController, 42 public views::ContextMenuController,
43 public views::MenuListener, 43 public views::MenuListener,
44 public StatusAreaHost { 44 public StatusAreaHost {
45 public: 45 public:
46 explicit BrowserView(Browser* browser); 46 explicit BrowserView(Browser* browser);
47 virtual ~BrowserView(); 47 virtual ~BrowserView();
48 48
49 // BrowserView overrides. 49 // BrowserView overrides.
50 virtual void Init(); 50 virtual void Init() OVERRIDE;
51 virtual void Show(); 51 virtual void Show() OVERRIDE;
52 virtual void ShowInactive(); 52 virtual void ShowInactive() OVERRIDE;
53 virtual void FocusChromeOSStatus(); 53 virtual void FocusChromeOSStatus() OVERRIDE;
54 virtual views::LayoutManager* CreateLayoutManager() const; 54 virtual views::LayoutManager* CreateLayoutManager() const OVERRIDE;
55 virtual void ChildPreferredSizeChanged(View* child); 55 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE;
56 virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const; 56 virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const OVERRIDE;
57 virtual void Cut(); 57 virtual void Cut() OVERRIDE;
58 virtual void Copy(); 58 virtual void Copy() OVERRIDE;
59 virtual void Paste(); 59 virtual void Paste() OVERRIDE;
60 virtual WindowOpenDisposition GetDispositionForPopupBounds( 60 virtual WindowOpenDisposition GetDispositionForPopupBounds(
61 const gfx::Rect& bounds); 61 const gfx::Rect& bounds) OVERRIDE;
62 62
63 // views::ContextMenuController overrides. 63 // views::ContextMenuController overrides.
64 virtual void ShowContextMenuForView(views::View* source, 64 virtual void ShowContextMenuForView(views::View* source,
65 const gfx::Point& p, 65 const gfx::Point& p,
66 bool is_mouse_gesture); 66 bool is_mouse_gesture) OVERRIDE;
67 67
68 // views::MenuListener implementation. 68 // views::MenuListener implementation.
69 virtual void OnMenuOpened(); 69 virtual void OnMenuOpened() OVERRIDE;
70 70
71 // StatusAreaHost overrides. 71 // StatusAreaHost overrides.
72 virtual Profile* GetProfile() const; 72 virtual Profile* GetProfile() const OVERRIDE;
73 virtual gfx::NativeWindow GetNativeWindow() const; 73 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE;
74 virtual bool ShouldOpenButtonOptions( 74 virtual bool ShouldOpenButtonOptions(
75 const views::View* button_view) const; 75 const views::View* button_view) const OVERRIDE;
76 virtual void ExecuteBrowserCommand(int id) const; 76 virtual void ExecuteBrowserCommand(int id) const OVERRIDE;
77 virtual void OpenButtonOptions(const views::View* button_view); 77 virtual void OpenButtonOptions(const views::View* button_view) OVERRIDE;
78 virtual ScreenMode GetScreenMode() const; 78 virtual ScreenMode GetScreenMode() const OVERRIDE;
79 virtual TextStyle GetTextStyle() const OVERRIDE;
79 80
80 gfx::NativeView saved_focused_widget() const { 81 gfx::NativeView saved_focused_widget() const {
81 return saved_focused_widget_; 82 return saved_focused_widget_;
82 } 83 }
83 84
84 protected: 85 protected:
85 virtual void GetAccessiblePanes( 86 virtual void GetAccessiblePanes(
86 std::vector<AccessiblePaneView*>* panes); 87 std::vector<AccessiblePaneView*>* panes);
87 88
88 private: 89 private:
(...skipping 11 matching lines...) Expand all
100 // Focused native widget before wench menu shows up. We need this to properly 101 // Focused native widget before wench menu shows up. We need this to properly
101 // perform cut, copy and paste. See http://crosbug.com/8496 102 // perform cut, copy and paste. See http://crosbug.com/8496
102 gfx::NativeView saved_focused_widget_; 103 gfx::NativeView saved_focused_widget_;
103 104
104 DISALLOW_COPY_AND_ASSIGN(BrowserView); 105 DISALLOW_COPY_AND_ASSIGN(BrowserView);
105 }; 106 };
106 107
107 } // namespace chromeos 108 } // namespace chromeos
108 109
109 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_ 110 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698