OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 7 |
8 #include "chrome/browser/chromeos/status/status_area_host.h" | 8 #include "chrome/browser/chromeos/status/status_area_host.h" |
9 #include "chrome/browser/views/frame/browser_view.h" | 9 #include "chrome/browser/views/frame/browser_view.h" |
10 #include "views/controls/button/button.h" | 10 #include "views/controls/button/button.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 const gfx::Point& p, | 75 const gfx::Point& p, |
76 bool is_mouse_gesture); | 76 bool is_mouse_gesture); |
77 | 77 |
78 // StatusAreaHost overrides. | 78 // StatusAreaHost overrides. |
79 virtual Profile* GetProfile() const; | 79 virtual Profile* GetProfile() const; |
80 virtual gfx::NativeWindow GetNativeWindow() const; | 80 virtual gfx::NativeWindow GetNativeWindow() const; |
81 virtual bool ShouldOpenButtonOptions( | 81 virtual bool ShouldOpenButtonOptions( |
82 const views::View* button_view) const; | 82 const views::View* button_view) const; |
83 virtual void OpenButtonOptions(const views::View* button_view) const; | 83 virtual void OpenButtonOptions(const views::View* button_view) const; |
84 virtual bool IsButtonVisible(const views::View* button_view) const; | 84 virtual bool IsButtonVisible(const views::View* button_view) const; |
| 85 virtual bool IsBrowserMode() const; |
85 | 86 |
86 // Shows the compact location bar under the selected tab. | 87 // Shows the compact location bar under the selected tab. |
87 void ShowCompactLocationBarUnderSelectedTab(bool select_all); | 88 void ShowCompactLocationBarUnderSelectedTab(bool select_all); |
88 | 89 |
89 // Returns true if the ui style is in Compact mode. | 90 // Returns true if the ui style is in Compact mode. |
90 bool is_compact_style() const { | 91 bool is_compact_style() const { |
91 return ui_style_ == CompactStyle; | 92 return ui_style_ == CompactStyle; |
92 } | 93 } |
93 | 94 |
94 private: | 95 private: |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 132 |
132 // Menu button shown in status area when browser is in compact mode. | 133 // Menu button shown in status area when browser is in compact mode. |
133 StatusAreaButton* menu_view_; | 134 StatusAreaButton* menu_view_; |
134 | 135 |
135 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 136 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
136 }; | 137 }; |
137 | 138 |
138 } // namespace chromeos | 139 } // namespace chromeos |
139 | 140 |
140 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_ | 141 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |