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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 AVATAR_BUBBLE_MODE_SIGNIN, | 371 AVATAR_BUBBLE_MODE_SIGNIN, |
372 AVATAR_BUBBLE_MODE_ADD_ACCOUNT, | 372 AVATAR_BUBBLE_MODE_ADD_ACCOUNT, |
373 AVATAR_BUBBLE_MODE_REAUTH, | 373 AVATAR_BUBBLE_MODE_REAUTH, |
374 AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN, | 374 AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN, |
375 AVATAR_BUBBLE_MODE_SHOW_ERROR, | 375 AVATAR_BUBBLE_MODE_SHOW_ERROR, |
376 AVATAR_BUBBLE_MODE_FAST_USER_SWITCH, | 376 AVATAR_BUBBLE_MODE_FAST_USER_SWITCH, |
377 }; | 377 }; |
378 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, | 378 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, |
379 const signin::ManageAccountsParams& manage_accounts_params) = 0; | 379 const signin::ManageAccountsParams& manage_accounts_params) = 0; |
380 | 380 |
381 // Closes the avatar bubble on the window frame. | |
382 virtual void CloseAvatarBubbleFromAvatarButton() = 0; | |
383 | |
384 // Returns the height inset for RenderView when detached bookmark bar is | 381 // Returns the height inset for RenderView when detached bookmark bar is |
385 // shown. Invoked when a new RenderHostView is created for a non-NTP | 382 // shown. Invoked when a new RenderHostView is created for a non-NTP |
386 // navigation entry and the bookmark bar is detached. | 383 // navigation entry and the bookmark bar is detached. |
387 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; | 384 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; |
388 | 385 |
389 // Executes |command| registered by |extension|. | 386 // Executes |command| registered by |extension|. |
390 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, | 387 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, |
391 const extensions::Command& command) = 0; | 388 const extensions::Command& command) = 0; |
392 | 389 |
393 // Returns object implementing ExclusiveAccessContext interface. | 390 // Returns object implementing ExclusiveAccessContext interface. |
394 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; | 391 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; |
395 | 392 |
396 protected: | 393 protected: |
397 friend class BrowserCloseManager; | 394 friend class BrowserCloseManager; |
398 friend class BrowserView; | 395 friend class BrowserView; |
399 virtual void DestroyBrowser() = 0; | 396 virtual void DestroyBrowser() = 0; |
400 }; | 397 }; |
401 | 398 |
402 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 399 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |