| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // off the record. |
| 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 off the record. |
| 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 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); |
| 181 | 181 |
| 182 // Shows the next app-modal dialog box, if there is one to be shown, or moves | 182 // Shows the next app-modal dialog box, if there is one to be shown, or moves |
| 183 // an existing showing one to the front. Returns true if one was shown or | 183 // an existing showing one to the front. Returns true if one was shown or |
| 184 // activated, false if none was shown. | 184 // activated, false if none was shown. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 } | 221 } |
| 222 | 222 |
| 223 // Register preferences specific to this view. | 223 // Register preferences specific to this view. |
| 224 static void RegisterBrowserViewPrefs(PrefService* prefs); | 224 static void RegisterBrowserViewPrefs(PrefService* prefs); |
| 225 | 225 |
| 226 // Returns true if the specified point(BrowserView coordinates) is in | 226 // Returns true if the specified point(BrowserView coordinates) is in |
| 227 // in the window caption area of the browser window. | 227 // in the window caption area of the browser window. |
| 228 bool IsPositionInWindowCaption(const gfx::Point& point); | 228 bool IsPositionInWindowCaption(const gfx::Point& point); |
| 229 | 229 |
| 230 // Returns whether the fullscreen bubble is visible or not. | 230 // Returns whether the fullscreen bubble is visible or not. |
| 231 bool IsFullscreenBubbleVisible() const; | 231 virtual bool IsFullscreenBubbleVisible() const; |
| 232 | 232 |
| 233 // Invoked from the frame when the full screen state changes. This is only | 233 // Invoked from the frame when the full screen state changes. This is only |
| 234 // used on Linux. | 234 // used on Linux. |
| 235 void FullScreenStateChanged(); | 235 void FullScreenStateChanged(); |
| 236 | 236 |
| 237 // Restores the focused view. This is also used to set the initial focus | 237 // Restores the focused view. This is also used to set the initial focus |
| 238 // when a new browser window is created. | 238 // when a new browser window is created. |
| 239 void RestoreFocus(); | 239 void RestoreFocus(); |
| 240 | 240 |
| 241 // Called when the activation of the frame changes. | 241 // Called when the activation of the frame changes. |
| (...skipping 440 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 |