OLD | NEW |
---|---|
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "chrome/browser/lifetime/browser_close_manager.h" | 9 #include "chrome/browser/lifetime/browser_close_manager.h" |
10 #include "chrome/browser/signin/signin_header_helper.h" | 10 #include "chrome/browser/signin/signin_header_helper.h" |
11 #include "chrome/browser/translate/chrome_translate_client.h" | 11 #include "chrome/browser/translate/chrome_translate_client.h" |
12 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" | 12 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" | 14 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" |
15 #include "chrome/browser/ui/host_desktop.h" | 15 #include "chrome/browser/ui/host_desktop.h" |
16 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" | 16 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" |
17 #include "components/content_settings/core/common/content_settings_types.h" | 17 #include "components/content_settings/core/common/content_settings_types.h" |
18 #include "components/translate/core/common/translate_errors.h" | 18 #include "components/translate/core/common/translate_errors.h" |
19 #include "ui/base/base_window.h" | 19 #include "ui/base/base_window.h" |
20 #include "ui/base/window_open_disposition.h" | 20 #include "ui/base/window_open_disposition.h" |
21 #include "ui/gfx/native_widget_types.h" | 21 #include "ui/gfx/native_widget_types.h" |
22 | 22 |
23 class Browser; | 23 class Browser; |
24 class DownloadShelf; | 24 class DownloadShelf; |
25 class ExclusiveAccessContext; | |
25 class FindBar; | 26 class FindBar; |
26 class GlobalErrorBubbleViewBase; | 27 class GlobalErrorBubbleViewBase; |
27 class GURL; | 28 class GURL; |
28 class LocationBar; | 29 class LocationBar; |
29 class Profile; | 30 class Profile; |
30 class ProfileResetGlobalError; | 31 class ProfileResetGlobalError; |
31 class StatusBubble; | 32 class StatusBubble; |
32 class TemplateURL; | 33 class TemplateURL; |
33 | 34 |
34 struct WebApplicationInfo; | 35 struct WebApplicationInfo; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
124 // + or - in the wrench menu to change zoom). | 125 // + or - in the wrench menu to change zoom). |
125 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; | 126 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; |
126 | 127 |
127 // Methods that change fullscreen state. | 128 // Methods that change fullscreen state. |
128 // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true, | 129 // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true, |
129 // |with_toolbar| is ignored on other platforms. | 130 // |with_toolbar| is ignored on other platforms. |
130 virtual void EnterFullscreen(const GURL& url, | 131 virtual void EnterFullscreen(const GURL& url, |
131 ExclusiveAccessBubbleType bubble_type, | 132 ExclusiveAccessBubbleType bubble_type, |
132 bool with_toolbar) = 0; | 133 bool with_toolbar) = 0; |
133 virtual void ExitFullscreen() = 0; | 134 virtual void ExitFullscreen() = 0; |
134 virtual void UpdateFullscreenExitBubbleContent( | 135 virtual void UpdateExclusiveAccessExitBubbleContent( |
135 const GURL& url, | 136 const GURL& url, |
136 ExclusiveAccessBubbleType bubble_type) = 0; | 137 ExclusiveAccessBubbleType bubble_type) = 0; |
137 | 138 |
138 // Windows and GTK remove the top controls in fullscreen, but Mac and Ash | 139 // Windows and GTK remove the top controls in fullscreen, but Mac and Ash |
139 // keep the controls in a slide-down panel. | 140 // keep the controls in a slide-down panel. |
140 virtual bool ShouldHideUIForFullscreen() const = 0; | 141 virtual bool ShouldHideUIForFullscreen() const = 0; |
141 | 142 |
142 // Returns true if the fullscreen bubble is visible. | 143 // Returns true if the fullscreen bubble is visible. |
143 virtual bool IsFullscreenBubbleVisible() const = 0; | 144 virtual bool IsFullscreenBubbleVisible() const = 0; |
144 | 145 |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
388 | 389 |
389 // Returns the height inset for RenderView when detached bookmark bar is | 390 // Returns the height inset for RenderView when detached bookmark bar is |
390 // shown. Invoked when a new RenderHostView is created for a non-NTP | 391 // shown. Invoked when a new RenderHostView is created for a non-NTP |
391 // navigation entry and the bookmark bar is detached. | 392 // navigation entry and the bookmark bar is detached. |
392 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; | 393 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; |
393 | 394 |
394 // Executes |command| registered by |extension|. | 395 // Executes |command| registered by |extension|. |
395 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, | 396 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, |
396 const extensions::Command& command) = 0; | 397 const extensions::Command& command) = 0; |
397 | 398 |
399 // Returns object implementing ExclusiveAccessContext interface. | |
400 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; | |
sky
2015/02/26 18:29:20
Does BrowserWindowCocoa implement this?
Sriram
2015/02/26 23:58:03
Done.
| |
401 | |
398 protected: | 402 protected: |
399 friend class BrowserCloseManager; | 403 friend class BrowserCloseManager; |
400 friend class BrowserView; | 404 friend class BrowserView; |
401 virtual void DestroyBrowser() = 0; | 405 virtual void DestroyBrowser() = 0; |
402 }; | 406 }; |
403 | 407 |
404 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 408 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |