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_ADD_ACCOUNT, | 371 AVATAR_BUBBLE_MODE_ADD_ACCOUNT, |
372 AVATAR_BUBBLE_MODE_REAUTH, | 372 AVATAR_BUBBLE_MODE_REAUTH, |
373 AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN, | 373 AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN, |
374 AVATAR_BUBBLE_MODE_SHOW_ERROR, | 374 AVATAR_BUBBLE_MODE_SHOW_ERROR, |
375 }; | 375 }; |
376 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, | 376 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, |
377 const signin::ManageAccountsParams& manage_accounts_params) = 0; | 377 const signin::ManageAccountsParams& manage_accounts_params) = 0; |
378 | 378 |
379 // Invoked when the amount of vertical overscroll changes. |delta_y| is the | 379 // Invoked when the amount of vertical overscroll changes. |delta_y| is the |
380 // amount of overscroll that has occured in the y-direction. | 380 // amount of overscroll that has occured in the y-direction. |
381 virtual void OverscrollUpdate(int delta_y) {} | 381 virtual void OverscrollUpdate(float delta_y) {} |
382 | 382 |
383 // Returns the height inset for RenderView when detached bookmark bar is | 383 // Returns the height inset for RenderView when detached bookmark bar is |
384 // 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 |
385 // navigation entry and the bookmark bar is detached. | 385 // navigation entry and the bookmark bar is detached. |
386 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; | 386 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; |
387 | 387 |
388 // Executes |command| registered by |extension|. | 388 // Executes |command| registered by |extension|. |
389 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, | 389 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, |
390 const extensions::Command& command) = 0; | 390 const extensions::Command& command) = 0; |
391 | 391 |
392 protected: | 392 protected: |
393 friend class BrowserCloseManager; | 393 friend class BrowserCloseManager; |
394 friend class BrowserView; | 394 friend class BrowserView; |
395 virtual void DestroyBrowser() = 0; | 395 virtual void DestroyBrowser() = 0; |
396 }; | 396 }; |
397 | 397 |
398 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 398 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |