OLD | NEW |
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 virtual void EnterFullscreen(const GURL& url, | 148 virtual void EnterFullscreen(const GURL& url, |
149 FullscreenExitBubbleType bubble_type) = 0; | 149 FullscreenExitBubbleType bubble_type) = 0; |
150 virtual void ExitFullscreen() = 0; | 150 virtual void ExitFullscreen() = 0; |
151 virtual void UpdateFullscreenExitBubbleContent( | 151 virtual void UpdateFullscreenExitBubbleContent( |
152 const GURL& url, | 152 const GURL& url, |
153 FullscreenExitBubbleType bubble_type) = 0; | 153 FullscreenExitBubbleType bubble_type) = 0; |
154 | 154 |
155 // Returns true if the fullscreen bubble is visible. | 155 // Returns true if the fullscreen bubble is visible. |
156 virtual bool IsFullscreenBubbleVisible() const = 0; | 156 virtual bool IsFullscreenBubbleVisible() const = 0; |
157 | 157 |
| 158 #if defined(OS_WIN) |
| 159 virtual void ToggleMetroSnapMode(bool enable) = 0; |
| 160 #endif |
| 161 |
158 // Returns the location bar. | 162 // Returns the location bar. |
159 virtual LocationBar* GetLocationBar() const = 0; | 163 virtual LocationBar* GetLocationBar() const = 0; |
160 | 164 |
161 // Tries to focus the location bar. Clears the window focus (to avoid | 165 // Tries to focus the location bar. Clears the window focus (to avoid |
162 // inconsistent state) if this fails. | 166 // inconsistent state) if this fails. |
163 virtual void SetFocusToLocationBar(bool select_all) = 0; | 167 virtual void SetFocusToLocationBar(bool select_all) = 0; |
164 | 168 |
165 // Informs the view whether or not a load is in progress for the current tab. | 169 // Informs the view whether or not a load is in progress for the current tab. |
166 // The view can use this notification to update the reload/stop button. | 170 // The view can use this notification to update the reload/stop button. |
167 virtual void UpdateReloadStopState(bool is_loading, bool force) = 0; | 171 virtual void UpdateReloadStopState(bool is_loading, bool force) = 0; |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 | 428 |
425 // Returns the ToolbarView. | 429 // Returns the ToolbarView. |
426 virtual ToolbarView* GetToolbarView() const = 0; | 430 virtual ToolbarView* GetToolbarView() const = 0; |
427 #endif | 431 #endif |
428 | 432 |
429 protected: | 433 protected: |
430 virtual ~BrowserWindowTesting() {} | 434 virtual ~BrowserWindowTesting() {} |
431 }; | 435 }; |
432 | 436 |
433 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 437 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |