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/signin_header_helper.h" | 10 #include "chrome/browser/signin/signin_header_helper.h" |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 // Shows the avatar bubble on the window frame off of the avatar button with | 374 // Shows the avatar bubble on the window frame off of the avatar button with |
375 // the given mode. The Service Type specified by GAIA is provided as well. | 375 // the given mode. The Service Type specified by GAIA is provided as well. |
376 enum AvatarBubbleMode { | 376 enum AvatarBubbleMode { |
377 AVATAR_BUBBLE_MODE_DEFAULT, | 377 AVATAR_BUBBLE_MODE_DEFAULT, |
378 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, | 378 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, |
379 AVATAR_BUBBLE_MODE_SIGNIN, | 379 AVATAR_BUBBLE_MODE_SIGNIN, |
380 AVATAR_BUBBLE_MODE_ADD_ACCOUNT, | 380 AVATAR_BUBBLE_MODE_ADD_ACCOUNT, |
381 AVATAR_BUBBLE_MODE_REAUTH, | 381 AVATAR_BUBBLE_MODE_REAUTH, |
382 AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN, | 382 AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN, |
383 AVATAR_BUBBLE_MODE_SHOW_ERROR, | 383 AVATAR_BUBBLE_MODE_SHOW_ERROR, |
| 384 AVATAR_BUBBLE_MODE_FAST_USER_SWITCH, |
384 }; | 385 }; |
385 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, | 386 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, |
386 const signin::ManageAccountsParams& manage_accounts_params) = 0; | 387 const signin::ManageAccountsParams& manage_accounts_params) = 0; |
387 | 388 |
388 // Returns the height inset for RenderView when detached bookmark bar is | 389 // Returns the height inset for RenderView when detached bookmark bar is |
389 // shown. Invoked when a new RenderHostView is created for a non-NTP | 390 // shown. Invoked when a new RenderHostView is created for a non-NTP |
390 // navigation entry and the bookmark bar is detached. | 391 // navigation entry and the bookmark bar is detached. |
391 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; | 392 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; |
392 | 393 |
393 // Executes |command| registered by |extension|. | 394 // Executes |command| registered by |extension|. |
394 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, | 395 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, |
395 const extensions::Command& command) = 0; | 396 const extensions::Command& command) = 0; |
396 | 397 |
397 protected: | 398 protected: |
398 friend class BrowserCloseManager; | 399 friend class BrowserCloseManager; |
399 friend class BrowserView; | 400 friend class BrowserView; |
400 virtual void DestroyBrowser() = 0; | 401 virtual void DestroyBrowser() = 0; |
401 }; | 402 }; |
402 | 403 |
403 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 404 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |