Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: chrome/browser/ui/browser_window.h

Issue 789403002: Rename fullscreen_exit_bubble_* to exclusive_access_bubble_* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated based on CR comments Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/fullscreen/fullscreen_exit_bubble_type.h" 14 #include "chrome/browser/ui/fullscreen/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 BrowserWindowTesting; 24 class BrowserWindowTesting;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // Called to force the zoom state to for the active tab to be recalculated. 124 // Called to force the zoom state to for the active tab to be recalculated.
125 // |can_show_bubble| is true when a user presses the zoom up or down keyboard 125 // |can_show_bubble| is true when a user presses the zoom up or down keyboard
126 // shortcuts and will be false in other cases (e.g. switching tabs, "clicking" 126 // shortcuts and will be false in other cases (e.g. switching tabs, "clicking"
127 // + or - in the wrench menu to change zoom). 127 // + or - in the wrench menu to change zoom).
128 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; 128 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0;
129 129
130 // Methods that change fullscreen state. 130 // Methods that change fullscreen state.
131 // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true, 131 // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true,
132 // |with_toolbar| is ignored on other platforms. 132 // |with_toolbar| is ignored on other platforms.
133 virtual void EnterFullscreen(const GURL& url, 133 virtual void EnterFullscreen(const GURL& url,
134 FullscreenExitBubbleType bubble_type, 134 ExclusiveAccessBubbleType bubble_type,
135 bool with_toolbar) = 0; 135 bool with_toolbar) = 0;
136 virtual void ExitFullscreen() = 0; 136 virtual void ExitFullscreen() = 0;
137 virtual void UpdateFullscreenExitBubbleContent( 137 virtual void UpdateFullscreenExitBubbleContent(
138 const GURL& url, 138 const GURL& url,
139 FullscreenExitBubbleType bubble_type) = 0; 139 ExclusiveAccessBubbleType bubble_type) = 0;
140 140
141 // Windows and GTK remove the top controls in fullscreen, but Mac and Ash 141 // Windows and GTK remove the top controls in fullscreen, but Mac and Ash
142 // keep the controls in a slide-down panel. 142 // keep the controls in a slide-down panel.
143 virtual bool ShouldHideUIForFullscreen() const = 0; 143 virtual bool ShouldHideUIForFullscreen() const = 0;
144 144
145 // Returns true if the fullscreen bubble is visible. 145 // Returns true if the fullscreen bubble is visible.
146 virtual bool IsFullscreenBubbleVisible() const = 0; 146 virtual bool IsFullscreenBubbleVisible() const = 0;
147 147
148 // Show or hide the tab strip, toolbar and bookmark bar when in browser 148 // Show or hide the tab strip, toolbar and bookmark bar when in browser
149 // fullscreen. 149 // fullscreen.
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, 387 virtual void ExecuteExtensionCommand(const extensions::Extension* extension,
388 const extensions::Command& command) = 0; 388 const extensions::Command& command) = 0;
389 389
390 protected: 390 protected:
391 friend class BrowserCloseManager; 391 friend class BrowserCloseManager;
392 friend class BrowserView; 392 friend class BrowserView;
393 virtual void DestroyBrowser() = 0; 393 virtual void DestroyBrowser() = 0;
394 }; 394 };
395 395
396 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 396 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_command_controller_unittest.cc ('k') | chrome/browser/ui/cocoa/applescript/window_applescript.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698