| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "chrome/browser/lifetime/browser_close_manager.h" | 10 #include "chrome/browser/lifetime/browser_close_manager.h" |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 // |access_point| indicates the access point used to open the Gaia sign in | 384 // |access_point| indicates the access point used to open the Gaia sign in |
| 385 // page. | 385 // page. |
| 386 virtual void ShowModalSigninWindow( | 386 virtual void ShowModalSigninWindow( |
| 387 AvatarBubbleMode mode, | 387 AvatarBubbleMode mode, |
| 388 signin_metrics::AccessPoint access_point) = 0; | 388 signin_metrics::AccessPoint access_point) = 0; |
| 389 | 389 |
| 390 // Closes the tab-modal signin flow opened with ShowModalSigninWindow, if it's | 390 // Closes the tab-modal signin flow opened with ShowModalSigninWindow, if it's |
| 391 // open. Does nothing otherwise. | 391 // open. Does nothing otherwise. |
| 392 virtual void CloseModalSigninWindow() = 0; | 392 virtual void CloseModalSigninWindow() = 0; |
| 393 | 393 |
| 394 // Shows the tab modal sync confirmation dialog that informs the user about |
| 395 // sync and gives them a chance to abort signin under the tab modal signin |
| 396 // flow. |
| 397 virtual void ShowModalSyncConfirmationWindow() = 0; |
| 398 |
| 394 // Returns the height inset for RenderView when detached bookmark bar is | 399 // Returns the height inset for RenderView when detached bookmark bar is |
| 395 // shown. Invoked when a new RenderHostView is created for a non-NTP | 400 // shown. Invoked when a new RenderHostView is created for a non-NTP |
| 396 // navigation entry and the bookmark bar is detached. | 401 // navigation entry and the bookmark bar is detached. |
| 397 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; | 402 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; |
| 398 | 403 |
| 399 // Executes |command| registered by |extension|. | 404 // Executes |command| registered by |extension|. |
| 400 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, | 405 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, |
| 401 const extensions::Command& command) = 0; | 406 const extensions::Command& command) = 0; |
| 402 | 407 |
| 403 // Returns object implementing ExclusiveAccessContext interface. | 408 // Returns object implementing ExclusiveAccessContext interface. |
| 404 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; | 409 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; |
| 405 | 410 |
| 406 protected: | 411 protected: |
| 407 friend class BrowserCloseManager; | 412 friend class BrowserCloseManager; |
| 408 friend class BrowserView; | 413 friend class BrowserView; |
| 409 virtual void DestroyBrowser() = 0; | 414 virtual void DestroyBrowser() = 0; |
| 410 }; | 415 }; |
| 411 | 416 |
| 412 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 417 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |