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

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

Issue 7740044: Implement fullscreen info bubble on Win and Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win work Created 9 years, 2 months 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 | Annotate | Revision Log
OLDNEW
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_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 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 9 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
10 #include "chrome/common/content_settings_types.h" 10 #include "chrome/common/content_settings_types.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual gfx::Rect GetBounds() const = 0; 129 virtual gfx::Rect GetBounds() const = 0;
130 130
131 // TODO(beng): REMOVE? 131 // TODO(beng): REMOVE?
132 // Returns true if the frame is maximized (aka zoomed). 132 // Returns true if the frame is maximized (aka zoomed).
133 virtual bool IsMaximized() const = 0; 133 virtual bool IsMaximized() const = 0;
134 134
135 // Returns true if the frame is minimized. 135 // Returns true if the frame is minimized.
136 virtual bool IsMinimized() const = 0; 136 virtual bool IsMinimized() const = 0;
137 137
138 // Accessors for fullscreen mode state. 138 // Accessors for fullscreen mode state.
139 virtual void SetFullscreen(bool fullscreen) = 0; 139 virtual void SetFullscreen(bool fullscreen, const GURL& url, bool show_buttons ) = 0;
140 virtual bool IsFullscreen() const = 0; 140 virtual bool IsFullscreen() const = 0;
141 141
142 // Returns true if the fullscreen bubble is visible. 142 // Returns true if the fullscreen bubble is visible.
143 virtual bool IsFullscreenBubbleVisible() const = 0; 143 virtual bool IsFullscreenBubbleVisible() const = 0;
144 144
145 // Returns the location bar. 145 // Returns the location bar.
146 virtual LocationBar* GetLocationBar() const = 0; 146 virtual LocationBar* GetLocationBar() const = 0;
147 147
148 // Tries to focus the location bar. Clears the window focus (to avoid 148 // Tries to focus the location bar. Clears the window focus (to avoid
149 // inconsistent state) if this fails. 149 // inconsistent state) if this fails.
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 300
301 // Switches between available tabstrip display modes. 301 // Switches between available tabstrip display modes.
302 virtual void ToggleTabStripMode() = 0; 302 virtual void ToggleTabStripMode() = 0;
303 303
304 #if defined(OS_MACOSX) 304 #if defined(OS_MACOSX)
305 // Opens the tabpose view. 305 // Opens the tabpose view.
306 virtual void OpenTabpose() = 0; 306 virtual void OpenTabpose() = 0;
307 307
308 // Sets the presentation mode for the window. If the window is not already in 308 // Sets the presentation mode for the window. If the window is not already in
309 // fullscreen, also enters fullscreen mode. 309 // fullscreen, also enters fullscreen mode.
310 virtual void SetPresentationMode(bool presentation_mode) = 0; 310 virtual void SetPresentationMode(bool presentation_mode,
311 const GURL& url,
312 bool show_buttons) = 0;
311 virtual bool InPresentationMode() = 0; 313 virtual bool InPresentationMode() = 0;
312 #endif 314 #endif
313 315
314 // See InstantDelegate for details. 316 // See InstantDelegate for details.
315 virtual void PrepareForInstant() = 0; 317 virtual void PrepareForInstant() = 0;
316 318
317 // Invoked when instant's tab contents should be shown. 319 // Invoked when instant's tab contents should be shown.
318 virtual void ShowInstant(TabContentsWrapper* preview) = 0; 320 virtual void ShowInstant(TabContentsWrapper* preview) = 0;
319 321
320 // Invoked when the instant's tab contents should be hidden. 322 // Invoked when the instant's tab contents should be hidden.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 384
383 // Returns the ToolbarView. 385 // Returns the ToolbarView.
384 virtual ToolbarView* GetToolbarView() const = 0; 386 virtual ToolbarView* GetToolbarView() const = 0;
385 #endif 387 #endif
386 388
387 protected: 389 protected:
388 virtual ~BrowserWindowTesting() {} 390 virtual ~BrowserWindowTesting() {}
389 }; 391 };
390 392
391 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 393 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698