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