| 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 AVATAR_BUBBLE_MODE_SIGNIN, | 380 AVATAR_BUBBLE_MODE_SIGNIN, |
| 381 AVATAR_BUBBLE_MODE_ADD_ACCOUNT, | 381 AVATAR_BUBBLE_MODE_ADD_ACCOUNT, |
| 382 AVATAR_BUBBLE_MODE_REAUTH, | 382 AVATAR_BUBBLE_MODE_REAUTH, |
| 383 AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN, | 383 AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN, |
| 384 AVATAR_BUBBLE_MODE_SHOW_ERROR, | 384 AVATAR_BUBBLE_MODE_SHOW_ERROR, |
| 385 AVATAR_BUBBLE_MODE_FAST_USER_SWITCH, | 385 AVATAR_BUBBLE_MODE_FAST_USER_SWITCH, |
| 386 }; | 386 }; |
| 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. |
| 391 virtual void ShowModalSigninWindow(AvatarBubbleMode mode) = 0; |
| 392 |
| 393 // Closes the tab-modal signin flow opened with ShowModalSigninWindow, if it's |
| 394 // open. Does nothing otherwise. |
| 395 virtual void CloseModalSigninWindow() = 0; |
| 396 |
| 390 // Returns the height inset for RenderView when detached bookmark bar is | 397 // Returns the height inset for RenderView when detached bookmark bar is |
| 391 // shown. Invoked when a new RenderHostView is created for a non-NTP | 398 // shown. Invoked when a new RenderHostView is created for a non-NTP |
| 392 // navigation entry and the bookmark bar is detached. | 399 // navigation entry and the bookmark bar is detached. |
| 393 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; | 400 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; |
| 394 | 401 |
| 395 // Executes |command| registered by |extension|. | 402 // Executes |command| registered by |extension|. |
| 396 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, | 403 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, |
| 397 const extensions::Command& command) = 0; | 404 const extensions::Command& command) = 0; |
| 398 | 405 |
| 399 // Returns object implementing ExclusiveAccessContext interface. | 406 // Returns object implementing ExclusiveAccessContext interface. |
| 400 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; | 407 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; |
| 401 | 408 |
| 402 protected: | 409 protected: |
| 403 friend class BrowserCloseManager; | 410 friend class BrowserCloseManager; |
| 404 friend class BrowserView; | 411 friend class BrowserView; |
| 405 virtual void DestroyBrowser() = 0; | 412 virtual void DestroyBrowser() = 0; |
| 406 }; | 413 }; |
| 407 | 414 |
| 408 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 415 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |