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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 bool IsGuestSession() const; | 200 bool IsGuestSession() const; |
201 | 201 |
202 // Returns true if the profile associated with this Browser window is | 202 // Returns true if the profile associated with this Browser window is |
203 // not off the record or a guest session. | 203 // not off the record or a guest session. |
204 bool IsRegularOrGuestSession() const; | 204 bool IsRegularOrGuestSession() const; |
205 | 205 |
206 // Returns the resource ID to use for the OTR icon, which depends on | 206 // Returns the resource ID to use for the OTR icon, which depends on |
207 // which layout is being shown and whether we are full-screen. | 207 // which layout is being shown and whether we are full-screen. |
208 int GetOTRIconResourceID() const; | 208 int GetOTRIconResourceID() const; |
209 | 209 |
210 // Returns the resource ID to use for the Guest icon, which may depend on | |
211 // which layout is being shown and whether we are full-screen. | |
212 int GetGuestIconResourceID() const; | |
213 | |
214 // Returns true if the non-client view should render an avatar icon. | 210 // Returns true if the non-client view should render an avatar icon. |
215 bool ShouldShowAvatar() const; | 211 bool ShouldShowAvatar() const; |
216 | 212 |
217 // Provides the containing frame with the accelerator for the specified | 213 // Provides the containing frame with the accelerator for the specified |
218 // command id. This can be used to provide menu item shortcut hints etc. | 214 // command id. This can be used to provide menu item shortcut hints etc. |
219 // Returns true if an accelerator was found for the specified |cmd_id|, false | 215 // Returns true if an accelerator was found for the specified |cmd_id|, false |
220 // otherwise. | 216 // otherwise. |
221 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); | 217 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); |
222 | 218 |
223 // Returns true if the specificed |accelerator| is registered with this view. | 219 // Returns true if the specificed |accelerator| is registered with this view. |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 gfx::ScopedSysColorChangeListener color_change_listener_; | 742 gfx::ScopedSysColorChangeListener color_change_listener_; |
747 | 743 |
748 scoped_ptr<WebContentsCloseHandler> web_contents_close_handler_; | 744 scoped_ptr<WebContentsCloseHandler> web_contents_close_handler_; |
749 | 745 |
750 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 746 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
751 | 747 |
752 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 748 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
753 }; | 749 }; |
754 | 750 |
755 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 751 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |