| 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 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "chrome/browser/lifetime/application_lifetime.h" | 9 #include "chrome/browser/lifetime/application_lifetime.h" |
| 10 #include "chrome/browser/ui/base_window.h" | 10 #include "chrome/browser/ui/base_window.h" |
| 11 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" | 11 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
| 12 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h" | 12 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h" |
| 13 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" | 13 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" |
| 14 #include "chrome/common/content_settings_types.h" | 14 #include "chrome/common/content_settings_types.h" |
| 15 #include "chrome/common/instant_types.h" |
| 15 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
| 16 #include "webkit/glue/window_open_disposition.h" | 17 #include "webkit/glue/window_open_disposition.h" |
| 17 | 18 |
| 18 class Browser; | 19 class Browser; |
| 19 class BrowserWindowTesting; | 20 class BrowserWindowTesting; |
| 20 class DownloadShelf; | 21 class DownloadShelf; |
| 21 class FindBar; | 22 class FindBar; |
| 22 class GURL; | 23 class GURL; |
| 23 class LocationBar; | 24 class LocationBar; |
| 24 class Profile; | 25 class Profile; |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 | 317 |
| 317 // Sets the presentation mode for the window. If the window is not already in | 318 // Sets the presentation mode for the window. If the window is not already in |
| 318 // fullscreen, also enters fullscreen mode. | 319 // fullscreen, also enters fullscreen mode. |
| 319 virtual void EnterPresentationMode( | 320 virtual void EnterPresentationMode( |
| 320 const GURL& url, | 321 const GURL& url, |
| 321 FullscreenExitBubbleType bubble_type) = 0; | 322 FullscreenExitBubbleType bubble_type) = 0; |
| 322 virtual void ExitPresentationMode() = 0; | 323 virtual void ExitPresentationMode() = 0; |
| 323 virtual bool InPresentationMode() = 0; | 324 virtual bool InPresentationMode() = 0; |
| 324 #endif | 325 #endif |
| 325 | 326 |
| 326 // Invoked when instant's tab contents should be shown. | 327 // Invoked when instant's tab contents should be shown with given |height|. |
| 327 virtual void ShowInstant(TabContents* preview) = 0; | 328 virtual void ShowInstant(TabContents* preview, |
| 329 int height, |
| 330 InstantSizeUnits units) = 0; |
| 328 | 331 |
| 329 // Invoked when the instant's tab contents should be hidden. | 332 // Invoked when instant's tab contents should be hidden. |
| 330 virtual void HideInstant() = 0; | 333 virtual void HideInstant() = 0; |
| 331 | 334 |
| 332 // Returns the desired bounds for instant in screen coordinates. Note that if | 335 // Returns the desired bounds for instant in screen coordinates. Note that if |
| 333 // instant isn't currently visible this returns the bounds instant would be | 336 // instant isn't currently visible this returns the bounds instant would be |
| 334 // placed at. | 337 // placed at. |
| 335 virtual gfx::Rect GetInstantBounds() = 0; | 338 virtual gfx::Rect GetInstantBounds() = 0; |
| 336 | 339 |
| 337 // Checks if an instant's tab contents is being shown. | 340 // Checks if an instant's tab contents is being shown. |
| 338 virtual bool IsInstantTabShowing() = 0; | 341 virtual bool IsInstantTabShowing() = 0; |
| 339 | 342 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 | 412 |
| 410 // Returns the ToolbarView. | 413 // Returns the ToolbarView. |
| 411 virtual ToolbarView* GetToolbarView() const = 0; | 414 virtual ToolbarView* GetToolbarView() const = 0; |
| 412 #endif | 415 #endif |
| 413 | 416 |
| 414 protected: | 417 protected: |
| 415 virtual ~BrowserWindowTesting() {} | 418 virtual ~BrowserWindowTesting() {} |
| 416 }; | 419 }; |
| 417 | 420 |
| 418 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 421 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |