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 guest session. | |
186 SkBitmap GetGuestAvatarIcon() const; | |
187 | |
188 // Returns true if the Browser object associated with this BrowserView is a | 185 // 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). | 186 // tabbed-type window (i.e. a browser window, not an app or popup). |
190 bool IsBrowserTypeNormal() const { | 187 bool IsBrowserTypeNormal() const { |
191 return browser_->is_type_tabbed(); | 188 return browser_->is_type_tabbed(); |
192 } | 189 } |
193 | 190 |
194 // Register local state preferences specific to this view. | 191 // Register local state preferences specific to this view. |
195 static void RegisterBrowserViewPrefs(PrefService* prefs); | 192 static void RegisterBrowserViewPrefs(PrefService* prefs); |
196 | 193 |
197 // Returns true if the specified point(BrowserView coordinates) is in | 194 // Returns true if the specified point(BrowserView coordinates) is in |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 bool force_location_bar_focus_; | 675 bool force_location_bar_focus_; |
679 | 676 |
680 PendingFullscreenRequest fullscreen_request_; | 677 PendingFullscreenRequest fullscreen_request_; |
681 | 678 |
682 gfx::ScopedSysColorChangeListener color_change_listener_; | 679 gfx::ScopedSysColorChangeListener color_change_listener_; |
683 | 680 |
684 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 681 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
685 }; | 682 }; |
686 | 683 |
687 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 684 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |