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