| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 bool IsOffTheRecord() const; | 193 bool IsOffTheRecord() const; |
| 194 | 194 |
| 195 // Returns true if the profile associated with this Browser window is | 195 // Returns true if the profile associated with this Browser window is |
| 196 // a guest session. | 196 // a guest session. |
| 197 bool IsGuestSession() const; | 197 bool IsGuestSession() const; |
| 198 | 198 |
| 199 // Returns true if the profile associated with this Browser window is | 199 // Returns true if the profile associated with this Browser window is |
| 200 // not off the record or a guest session. | 200 // not off the record or a guest session. |
| 201 bool IsRegularOrGuestSession() const; | 201 bool IsRegularOrGuestSession() const; |
| 202 | 202 |
| 203 // Returns true if the non-client view should render an avatar icon. | |
| 204 bool ShouldShowAvatar() const; | |
| 205 | |
| 206 // Provides the containing frame with the accelerator for the specified | 203 // Provides the containing frame with the accelerator for the specified |
| 207 // command id. This can be used to provide menu item shortcut hints etc. | 204 // command id. This can be used to provide menu item shortcut hints etc. |
| 208 // Returns true if an accelerator was found for the specified |cmd_id|, false | 205 // Returns true if an accelerator was found for the specified |cmd_id|, false |
| 209 // otherwise. | 206 // otherwise. |
| 210 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator) const; | 207 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator) const; |
| 211 | 208 |
| 212 // Returns true if the specificed |accelerator| is registered with this view. | 209 // Returns true if the specificed |accelerator| is registered with this view. |
| 213 bool IsAcceleratorRegistered(const ui::Accelerator& accelerator); | 210 bool IsAcceleratorRegistered(const ui::Accelerator& accelerator); |
| 214 | 211 |
| 215 // Returns the active WebContents. Used by our NonClientView's | 212 // Returns the active WebContents. Used by our NonClientView's |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 // The class that registers for keyboard shortcuts for extension commands. | 691 // The class that registers for keyboard shortcuts for extension commands. |
| 695 std::unique_ptr<ExtensionKeybindingRegistryViews> | 692 std::unique_ptr<ExtensionKeybindingRegistryViews> |
| 696 extension_keybinding_registry_; | 693 extension_keybinding_registry_; |
| 697 | 694 |
| 698 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 695 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
| 699 | 696 |
| 700 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 697 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
| 701 }; | 698 }; |
| 702 | 699 |
| 703 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 700 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
| OLD | NEW |