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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, | 370 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, |
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 }; | 376 }; |
377 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, | 377 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, |
378 const signin::ManageAccountsParams& manage_accounts_params) = 0; | 378 const signin::ManageAccountsParams& manage_accounts_params) = 0; |
379 | 379 |
380 // Invoked when the amount of vertical overscroll changes. |delta_y| is the | |
381 // amount of overscroll that has occured in the y-direction. | |
382 virtual void OverscrollUpdate(float delta_y) {} | |
383 | |
384 // Returns the height inset for RenderView when detached bookmark bar is | 380 // Returns the height inset for RenderView when detached bookmark bar is |
385 // shown. Invoked when a new RenderHostView is created for a non-NTP | 381 // shown. Invoked when a new RenderHostView is created for a non-NTP |
386 // navigation entry and the bookmark bar is detached. | 382 // navigation entry and the bookmark bar is detached. |
387 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; | 383 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; |
388 | 384 |
389 // Executes |command| registered by |extension|. | 385 // Executes |command| registered by |extension|. |
390 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, | 386 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, |
391 const extensions::Command& command) = 0; | 387 const extensions::Command& command) = 0; |
392 | 388 |
393 protected: | 389 protected: |
394 friend class BrowserCloseManager; | 390 friend class BrowserCloseManager; |
395 friend class BrowserView; | 391 friend class BrowserView; |
396 virtual void DestroyBrowser() = 0; | 392 virtual void DestroyBrowser() = 0; |
397 }; | 393 }; |
398 | 394 |
399 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 395 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |