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

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

Issue 10446106: Preliminary metro snap plumbing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Aura compile fixes. 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
« 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
153 // Returns the location bar. 161 // Returns the location bar.
154 virtual LocationBar* GetLocationBar() const = 0; 162 virtual LocationBar* GetLocationBar() const = 0;
155 163
156 // Tries to focus the location bar. Clears the window focus (to avoid 164 // Tries to focus the location bar. Clears the window focus (to avoid
157 // inconsistent state) if this fails. 165 // inconsistent state) if this fails.
158 virtual void SetFocusToLocationBar(bool select_all) = 0; 166 virtual void SetFocusToLocationBar(bool select_all) = 0;
159 167
160 // Informs the view whether or not a load is in progress for the current tab. 168 // Informs the view whether or not a load is in progress for the current tab.
161 // The view can use this notification to update the reload/stop button. 169 // The view can use this notification to update the reload/stop button.
162 virtual void UpdateReloadStopState(bool is_loading, bool force) = 0; 170 virtual void UpdateReloadStopState(bool is_loading, bool force) = 0;
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 426
419 // Returns the ToolbarView. 427 // Returns the ToolbarView.
420 virtual ToolbarView* GetToolbarView() const = 0; 428 virtual ToolbarView* GetToolbarView() const = 0;
421 #endif 429 #endif
422 430
423 protected: 431 protected:
424 virtual ~BrowserWindowTesting() {} 432 virtual ~BrowserWindowTesting() {}
425 }; 433 };
426 434
427 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 435 #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