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