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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // TODO(beng): exposing this here is a bit bogus, since it's only used to | 175 // TODO(beng): exposing this here is a bit bogus, since it's only used to |
176 // determine loading state. It'd be nicer if we could change this to be | 176 // determine loading state. It'd be nicer if we could change this to be |
177 // bool IsSelectedTabLoading() const; or something like that. We could even | 177 // bool IsSelectedTabLoading() const; or something like that. We could even |
178 // move it to a WindowDelegate subclass. | 178 // move it to a WindowDelegate subclass. |
179 content::WebContents* GetSelectedWebContents() const; | 179 content::WebContents* GetSelectedWebContents() const; |
180 TabContentsWrapper* GetSelectedTabContentsWrapper() const; | 180 TabContentsWrapper* GetSelectedTabContentsWrapper() const; |
181 | 181 |
182 // Retrieves the icon to use in the frame to indicate an OTR window. | 182 // Retrieves the icon to use in the frame to indicate an OTR window. |
183 SkBitmap GetOTRAvatarIcon() const; | 183 SkBitmap GetOTRAvatarIcon() const; |
184 | 184 |
| 185 // Retrieves the icon to use in the frame to indicate managed mode. |
| 186 SkBitmap GetManagedModeAvatarIcon() const; |
| 187 |
185 // Retrieves the icon to use in the frame to indicate guest session. | 188 // Retrieves the icon to use in the frame to indicate guest session. |
186 SkBitmap GetGuestAvatarIcon() const; | 189 SkBitmap GetGuestAvatarIcon() const; |
187 | 190 |
188 // Returns true if the Browser object associated with this BrowserView is a | 191 // Returns true if the Browser object associated with this BrowserView is a |
189 // tabbed-type window (i.e. a browser window, not an app or popup). | 192 // tabbed-type window (i.e. a browser window, not an app or popup). |
190 bool IsBrowserTypeNormal() const { | 193 bool IsBrowserTypeNormal() const { |
191 return browser_->is_type_tabbed(); | 194 return browser_->is_type_tabbed(); |
192 } | 195 } |
193 | 196 |
194 // Register local state preferences specific to this view. | 197 // Register local state preferences specific to this view. |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 bool force_location_bar_focus_; | 681 bool force_location_bar_focus_; |
679 | 682 |
680 PendingFullscreenRequest fullscreen_request_; | 683 PendingFullscreenRequest fullscreen_request_; |
681 | 684 |
682 gfx::ScopedSysColorChangeListener color_change_listener_; | 685 gfx::ScopedSysColorChangeListener color_change_listener_; |
683 | 686 |
684 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 687 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
685 }; | 688 }; |
686 | 689 |
687 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 690 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |