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

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

Issue 10534123: Revert 141723 - First pass at making Chrome support metro snap mode. It creates a fullscreen-alike … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
« no previous file with comments | « chrome/browser/ui/browser_win.cc ('k') | chrome/browser/ui/fullscreen_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_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 "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "chrome/browser/lifetime/application_lifetime.h" 10 #include "chrome/browser/lifetime/application_lifetime.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 virtual void EnterFullscreen(const GURL& url, 143 virtual void EnterFullscreen(const GURL& url,
144 FullscreenExitBubbleType bubble_type) = 0; 144 FullscreenExitBubbleType bubble_type) = 0;
145 virtual void ExitFullscreen() = 0; 145 virtual void ExitFullscreen() = 0;
146 virtual void UpdateFullscreenExitBubbleContent( 146 virtual void UpdateFullscreenExitBubbleContent(
147 const GURL& url, 147 const GURL& url,
148 FullscreenExitBubbleType bubble_type) = 0; 148 FullscreenExitBubbleType bubble_type) = 0;
149 149
150 // Returns true if the fullscreen bubble is visible. 150 // Returns true if the fullscreen bubble is visible.
151 virtual bool IsFullscreenBubbleVisible() const = 0; 151 virtual bool IsFullscreenBubbleVisible() const = 0;
152 152
153 #if defined(OS_WIN)
154 // Sets state for entering or exiting Win8 Metro snap mode.
155 virtual void SetMetroSnapMode(bool enable) = 0;
156
157 // Returns whether the window is currently in Win8 Metro snap mode.
158 virtual bool IsInMetroSnapMode() const = 0;
159 #endif
160
161 // Returns the location bar. 153 // Returns the location bar.
162 virtual LocationBar* GetLocationBar() const = 0; 154 virtual LocationBar* GetLocationBar() const = 0;
163 155
164 // Tries to focus the location bar. Clears the window focus (to avoid 156 // Tries to focus the location bar. Clears the window focus (to avoid
165 // inconsistent state) if this fails. 157 // inconsistent state) if this fails.
166 virtual void SetFocusToLocationBar(bool select_all) = 0; 158 virtual void SetFocusToLocationBar(bool select_all) = 0;
167 159
168 // Informs the view whether or not a load is in progress for the current tab. 160 // Informs the view whether or not a load is in progress for the current tab.
169 // The view can use this notification to update the reload/stop button. 161 // The view can use this notification to update the reload/stop button.
170 virtual void UpdateReloadStopState(bool is_loading, bool force) = 0; 162 virtual void UpdateReloadStopState(bool is_loading, bool force) = 0;
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 418
427 // Returns the ToolbarView. 419 // Returns the ToolbarView.
428 virtual ToolbarView* GetToolbarView() const = 0; 420 virtual ToolbarView* GetToolbarView() const = 0;
429 #endif 421 #endif
430 422
431 protected: 423 protected:
432 virtual ~BrowserWindowTesting() {} 424 virtual ~BrowserWindowTesting() {}
433 }; 425 };
434 426
435 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 427 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_win.cc ('k') | chrome/browser/ui/fullscreen_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698