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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 181 |
182 // Handle the specified |accelerator| being pressed. | 182 // Handle the specified |accelerator| being pressed. |
183 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 183 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
184 | 184 |
185 // Provides the containing frame with the accelerator for the specified | 185 // Provides the containing frame with the accelerator for the specified |
186 // command id. This can be used to provide menu item shortcut hints etc. | 186 // command id. This can be used to provide menu item shortcut hints etc. |
187 // Returns true if an accelerator was found for the specified |cmd_id|, false | 187 // Returns true if an accelerator was found for the specified |cmd_id|, false |
188 // otherwise. | 188 // otherwise. |
189 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); | 189 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); |
190 | 190 |
191 // Returns true if the specificed |accelerator| is registered with this view. | |
192 bool IsAcceleratorRegistered(const ui::Accelerator& accelerator); | |
193 | |
194 // Returns the active WebContents. Used by our NonClientView's | 191 // Returns the active WebContents. Used by our NonClientView's |
195 // TabIconView::TabContentsProvider implementations. | 192 // TabIconView::TabContentsProvider implementations. |
196 // TODO(beng): exposing this here is a bit bogus, since it's only used to | 193 // TODO(beng): exposing this here is a bit bogus, since it's only used to |
197 // determine loading state. It'd be nicer if we could change this to be | 194 // determine loading state. It'd be nicer if we could change this to be |
198 // bool IsSelectedTabLoading() const; or something like that. We could even | 195 // bool IsSelectedTabLoading() const; or something like that. We could even |
199 // move it to a WindowDelegate subclass. | 196 // move it to a WindowDelegate subclass. |
200 content::WebContents* GetActiveWebContents() const; | 197 content::WebContents* GetActiveWebContents() const; |
201 | 198 |
202 // Retrieves the icon to use in the frame to indicate an OTR window. | 199 // Retrieves the icon to use in the frame to indicate an OTR window. |
203 gfx::ImageSkia GetOTRAvatarIcon() const; | 200 gfx::ImageSkia GetOTRAvatarIcon() const; |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 gfx::ScopedSysColorChangeListener color_change_listener_; | 736 gfx::ScopedSysColorChangeListener color_change_listener_; |
740 | 737 |
741 scoped_ptr<InstantOverlayControllerViews> overlay_controller_; | 738 scoped_ptr<InstantOverlayControllerViews> overlay_controller_; |
742 | 739 |
743 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 740 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
744 | 741 |
745 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 742 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
746 }; | 743 }; |
747 | 744 |
748 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 745 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |