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 an avatar icon. | 168 // Returns true if the non-client view should render the Incognito |
169 virtual bool ShouldShowAvatar() const; | 169 // avatar icon if the window is incognito. |
| 170 virtual bool ShouldShowOffTheRecordAvatar() const; |
170 | 171 |
171 // Handle the specified |accelerator| being pressed. | 172 // Handle the specified |accelerator| being pressed. |
172 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); | 173 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); |
173 | 174 |
174 // Provides the containing frame with the accelerator for the specified | 175 // Provides the containing frame with the accelerator for the specified |
175 // command id. This can be used to provide menu item shortcut hints etc. | 176 // command id. This can be used to provide menu item shortcut hints etc. |
176 // Returns true if an accelerator was found for the specified |cmd_id|, false | 177 // Returns true if an accelerator was found for the specified |cmd_id|, false |
177 // otherwise. | 178 // otherwise. |
178 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); | 179 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); |
179 | 180 |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 | 718 |
718 NotificationRegistrar registrar_; | 719 NotificationRegistrar registrar_; |
719 | 720 |
720 // Used to measure the loading spinner animation rate. | 721 // Used to measure the loading spinner animation rate. |
721 base::TimeTicks last_animation_time_; | 722 base::TimeTicks last_animation_time_; |
722 | 723 |
723 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 724 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
724 }; | 725 }; |
725 | 726 |
726 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 727 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |