| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // Accessor for the Toolbar. | 156 // Accessor for the Toolbar. |
| 157 ToolbarView* toolbar() const { return toolbar_; } | 157 ToolbarView* toolbar() const { return toolbar_; } |
| 158 | 158 |
| 159 // Returns true if various window components are visible. | 159 // Returns true if various window components are visible. |
| 160 bool IsTabStripVisible() const; | 160 bool IsTabStripVisible() const; |
| 161 | 161 |
| 162 // Returns true if the vertical tabstrip is in use. | 162 // Returns true if the vertical tabstrip is in use. |
| 163 bool UseVerticalTabs() const; | 163 bool UseVerticalTabs() const; |
| 164 | 164 |
| 165 // Returns true if the profile associated with this Browser window is | 165 // Returns true if the profile associated with this Browser window is |
| 166 // off the record. | 166 // incognito. |
| 167 bool IsOffTheRecord() const; | 167 bool IsOffTheRecord() const; |
| 168 | 168 |
| 169 // Returns true if the non-client view should render the Off-The-Record | 169 // Returns true if the non-client view should render the Off-The-Record |
| 170 // avatar icon if the window is off the record. | 170 // avatar icon if the window is incognito. |
| 171 bool ShouldShowOffTheRecordAvatar() const; | 171 bool ShouldShowOffTheRecordAvatar() const; |
| 172 | 172 |
| 173 // Handle the specified |accelerator| being pressed. | 173 // Handle the specified |accelerator| being pressed. |
| 174 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); | 174 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); |
| 175 | 175 |
| 176 // Provides the containing frame with the accelerator for the specified | 176 // Provides the containing frame with the accelerator for the specified |
| 177 // command id. This can be used to provide menu item shortcut hints etc. | 177 // command id. This can be used to provide menu item shortcut hints etc. |
| 178 // Returns true if an accelerator was found for the specified |cmd_id|, false | 178 // Returns true if an accelerator was found for the specified |cmd_id|, false |
| 179 // otherwise. | 179 // otherwise. |
| 180 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); | 180 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 | 682 |
| 683 NotificationRegistrar registrar_; | 683 NotificationRegistrar registrar_; |
| 684 | 684 |
| 685 // Used to measure the loading spinner animation rate. | 685 // Used to measure the loading spinner animation rate. |
| 686 base::TimeTicks last_animation_time_; | 686 base::TimeTicks last_animation_time_; |
| 687 | 687 |
| 688 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 688 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
| 689 }; | 689 }; |
| 690 | 690 |
| 691 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 691 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
| OLD | NEW |