| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 bool IsIncognito() const; | 195 bool IsIncognito() const; |
| 196 | 196 |
| 197 // Returns true if the profile associated with this Browser window is | 197 // Returns true if the profile associated with this Browser window is |
| 198 // a guest session. | 198 // a guest session. |
| 199 bool IsGuestSession() const; | 199 bool IsGuestSession() const; |
| 200 | 200 |
| 201 // Returns true if the profile associated with this Browser window is | 201 // Returns true if the profile associated with this Browser window is |
| 202 // not incognito or a guest session. | 202 // not incognito or a guest session. |
| 203 bool IsRegularOrGuestSession() const; | 203 bool IsRegularOrGuestSession() const; |
| 204 | 204 |
| 205 // Returns whether or not a client edge (the border around the web content) |
| 206 // should be laid out and drawn. |
| 207 bool HasClientEdge() const; |
| 208 |
| 205 // Provides the containing frame with the accelerator for the specified | 209 // Provides the containing frame with the accelerator for the specified |
| 206 // command id. This can be used to provide menu item shortcut hints etc. | 210 // command id. This can be used to provide menu item shortcut hints etc. |
| 207 // Returns true if an accelerator was found for the specified |cmd_id|, false | 211 // Returns true if an accelerator was found for the specified |cmd_id|, false |
| 208 // otherwise. | 212 // otherwise. |
| 209 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator) const; | 213 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator) const; |
| 210 | 214 |
| 211 // Returns true if the specificed |accelerator| is registered with this view. | 215 // Returns true if the specificed |accelerator| is registered with this view. |
| 212 bool IsAcceleratorRegistered(const ui::Accelerator& accelerator); | 216 bool IsAcceleratorRegistered(const ui::Accelerator& accelerator); |
| 213 | 217 |
| 214 // Returns the active WebContents. Used by our NonClientView's | 218 // Returns the active WebContents. Used by our NonClientView's |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 // The class that registers for keyboard shortcuts for extension commands. | 703 // The class that registers for keyboard shortcuts for extension commands. |
| 700 std::unique_ptr<ExtensionKeybindingRegistryViews> | 704 std::unique_ptr<ExtensionKeybindingRegistryViews> |
| 701 extension_keybinding_registry_; | 705 extension_keybinding_registry_; |
| 702 | 706 |
| 703 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 707 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
| 704 | 708 |
| 705 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 709 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
| 706 }; | 710 }; |
| 707 | 711 |
| 708 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 712 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
| OLD | NEW |