OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // an existing showing one to the front. Returns true if one was shown or | 178 // an existing showing one to the front. Returns true if one was shown or |
179 // activated, false if none was shown. | 179 // activated, false if none was shown. |
180 bool ActivateAppModalDialog() const; | 180 bool ActivateAppModalDialog() const; |
181 | 181 |
182 // Returns the selected TabContents[Wrapper]. Used by our NonClientView's | 182 // Returns the selected TabContents[Wrapper]. Used by our NonClientView's |
183 // TabIconView::TabContentsProvider implementations. | 183 // TabIconView::TabContentsProvider implementations. |
184 // TODO(beng): exposing this here is a bit bogus, since it's only used to | 184 // TODO(beng): exposing this here is a bit bogus, since it's only used to |
185 // determine loading state. It'd be nicer if we could change this to be | 185 // determine loading state. It'd be nicer if we could change this to be |
186 // bool IsSelectedTabLoading() const; or something like that. We could even | 186 // bool IsSelectedTabLoading() const; or something like that. We could even |
187 // move it to a WindowDelegate subclass. | 187 // move it to a WindowDelegate subclass. |
188 TabContents* GetSelectedTabContents() const; | 188 content::WebContents* GetSelectedWebContents() const; |
189 TabContentsWrapper* GetSelectedTabContentsWrapper() const; | 189 TabContentsWrapper* GetSelectedTabContentsWrapper() const; |
190 | 190 |
191 // Retrieves the icon to use in the frame to indicate an OTR window. | 191 // Retrieves the icon to use in the frame to indicate an OTR window. |
192 SkBitmap GetOTRAvatarIcon() const; | 192 SkBitmap GetOTRAvatarIcon() const; |
193 | 193 |
194 // Retrieves the icon to use in the frame to indicate guest session. | 194 // Retrieves the icon to use in the frame to indicate guest session. |
195 SkBitmap GetGuestAvatarIcon() const; | 195 SkBitmap GetGuestAvatarIcon() const; |
196 | 196 |
197 #if defined(OS_WIN) | 197 #if defined(OS_WIN) |
198 // Called right before displaying the system menu to allow the BrowserView | 198 // Called right before displaying the system menu to allow the BrowserView |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 // If this flag is set then SetFocusToLocationBar() will set focus to the | 742 // If this flag is set then SetFocusToLocationBar() will set focus to the |
743 // location bar even if the browser window is not active. | 743 // location bar even if the browser window is not active. |
744 bool force_location_bar_focus_; | 744 bool force_location_bar_focus_; |
745 | 745 |
746 PendingFullscreenRequest fullscreen_request_; | 746 PendingFullscreenRequest fullscreen_request_; |
747 | 747 |
748 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 748 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
749 }; | 749 }; |
750 | 750 |
751 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 751 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |