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