| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 the resource ID to use for the OTR icon, which depends on | 203 // Returns the resource ID to use for the OTR icon, which depends on |
| 204 // which layout is being shown and whether we are full-screen. | 204 // which layout is being shown and whether we are full-screen. |
| 205 int GetOTRIconResourceID() const; | 205 int GetOTRIconResourceID() const; |
| 206 | 206 |
| 207 // Returns the resource ID to use for the Guest icon, which may depend on | |
| 208 // which layout is being shown and whether we are full-screen. | |
| 209 int GetGuestIconResourceID() const; | |
| 210 | |
| 211 // Returns true if the non-client view should render an avatar icon. | 207 // Returns true if the non-client view should render an avatar icon. |
| 212 bool ShouldShowAvatar() const; | 208 bool ShouldShowAvatar() const; |
| 213 | 209 |
| 214 // Provides the containing frame with the accelerator for the specified | 210 // Provides the containing frame with the accelerator for the specified |
| 215 // command id. This can be used to provide menu item shortcut hints etc. | 211 // command id. This can be used to provide menu item shortcut hints etc. |
| 216 // Returns true if an accelerator was found for the specified |cmd_id|, false | 212 // Returns true if an accelerator was found for the specified |cmd_id|, false |
| 217 // otherwise. | 213 // otherwise. |
| 218 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); | 214 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); |
| 219 | 215 |
| 220 // Returns true if the specificed |accelerator| is registered with this view. | 216 // Returns true if the specificed |accelerator| is registered with this view. |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 scoped_ptr<ScrollEndEffectController> scroll_end_effect_controller_; | 735 scoped_ptr<ScrollEndEffectController> scroll_end_effect_controller_; |
| 740 | 736 |
| 741 gfx::ScopedSysColorChangeListener color_change_listener_; | 737 gfx::ScopedSysColorChangeListener color_change_listener_; |
| 742 | 738 |
| 743 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 739 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
| 744 | 740 |
| 745 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 741 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
| 746 }; | 742 }; |
| 747 | 743 |
| 748 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 744 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
| OLD | NEW |