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_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // Returns true if the vertical tabstrip is in use. | 158 // Returns true if the vertical tabstrip is in use. |
159 bool UseVerticalTabs() const; | 159 bool UseVerticalTabs() const; |
160 | 160 |
161 // Returns true if the compact navigation bar is in use. | 161 // Returns true if the compact navigation bar is in use. |
162 bool UseCompactNavigationBar() const; | 162 bool UseCompactNavigationBar() const; |
163 | 163 |
164 // Returns true if the profile associated with this Browser window is | 164 // Returns true if the profile associated with this Browser window is |
165 // incognito. | 165 // incognito. |
166 bool IsOffTheRecord() const; | 166 bool IsOffTheRecord() const; |
167 | 167 |
168 // Returns true if the non-client view should render the Incognito | 168 // Returns true if the non-client view should render an avatar icon. |
169 // avatar icon if the window is incognito. | 169 virtual bool ShouldShowAvatar() const; |
170 virtual bool ShouldShowOffTheRecordAvatar() const; | |
171 | 170 |
172 // Handle the specified |accelerator| being pressed. | 171 // Handle the specified |accelerator| being pressed. |
173 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); | 172 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); |
174 | 173 |
175 // Provides the containing frame with the accelerator for the specified | 174 // Provides the containing frame with the accelerator for the specified |
176 // command id. This can be used to provide menu item shortcut hints etc. | 175 // command id. This can be used to provide menu item shortcut hints etc. |
177 // Returns true if an accelerator was found for the specified |cmd_id|, false | 176 // Returns true if an accelerator was found for the specified |cmd_id|, false |
178 // otherwise. | 177 // otherwise. |
179 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); | 178 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); |
180 | 179 |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 | 717 |
719 NotificationRegistrar registrar_; | 718 NotificationRegistrar registrar_; |
720 | 719 |
721 // Used to measure the loading spinner animation rate. | 720 // Used to measure the loading spinner animation rate. |
722 base::TimeTicks last_animation_time_; | 721 base::TimeTicks last_animation_time_; |
723 | 722 |
724 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 723 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
725 }; | 724 }; |
726 | 725 |
727 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 726 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |