OLD | NEW |
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // views::MenuListener implementation. | 65 // views::MenuListener implementation. |
66 virtual void OnMenuOpened(); | 66 virtual void OnMenuOpened(); |
67 | 67 |
68 // StatusAreaHost overrides. | 68 // StatusAreaHost overrides. |
69 virtual Profile* GetProfile() const; | 69 virtual Profile* GetProfile() const; |
70 virtual gfx::NativeWindow GetNativeWindow() const; | 70 virtual gfx::NativeWindow GetNativeWindow() const; |
71 virtual bool ShouldOpenButtonOptions( | 71 virtual bool ShouldOpenButtonOptions( |
72 const views::View* button_view) const; | 72 const views::View* button_view) const; |
73 virtual void ExecuteBrowserCommand(int id) const; | 73 virtual void ExecuteBrowserCommand(int id) const; |
74 virtual void OpenButtonOptions(const views::View* button_view); | 74 virtual void OpenButtonOptions(const views::View* button_view); |
75 virtual bool IsBrowserMode() const; | 75 virtual ScreenMode GetScreenMode() const; |
76 virtual bool IsScreenLockerMode() const; | |
77 | 76 |
78 gfx::NativeView saved_focused_widget() const { | 77 gfx::NativeView saved_focused_widget() const { |
79 return saved_focused_widget_; | 78 return saved_focused_widget_; |
80 } | 79 } |
81 | 80 |
82 protected: | 81 protected: |
83 virtual void GetAccessiblePanes( | 82 virtual void GetAccessiblePanes( |
84 std::vector<AccessiblePaneView*>* panes); | 83 std::vector<AccessiblePaneView*>* panes); |
85 | 84 |
86 private: | 85 private: |
87 void InitSystemMenu(); | 86 void InitSystemMenu(); |
88 | 87 |
89 // Status Area view. | 88 // Status Area view. |
90 StatusAreaView* status_area_; | 89 StatusAreaView* status_area_; |
91 | 90 |
92 // System menus. | 91 // System menus. |
93 scoped_ptr<ui::SimpleMenuModel> system_menu_contents_; | 92 scoped_ptr<ui::SimpleMenuModel> system_menu_contents_; |
94 scoped_ptr<views::Menu2> system_menu_menu_; | 93 scoped_ptr<views::Menu2> system_menu_menu_; |
95 | 94 |
96 // Focused native widget before wench menu shows up. We need this to properly | 95 // Focused native widget before wench menu shows up. We need this to properly |
97 // perform cut, copy and paste. See http://crosbug.com/8496 | 96 // perform cut, copy and paste. See http://crosbug.com/8496 |
98 gfx::NativeView saved_focused_widget_; | 97 gfx::NativeView saved_focused_widget_; |
99 | 98 |
100 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 99 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
101 }; | 100 }; |
102 | 101 |
103 } // namespace chromeos | 102 } // namespace chromeos |
104 | 103 |
105 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_ | 104 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |