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 15 matching lines...) Expand all Loading... | |
26 class FindBar; | 26 class FindBar; |
27 class GURL; | 27 class GURL; |
28 class LocationBar; | 28 class LocationBar; |
29 class Profile; | 29 class Profile; |
30 class StatusBubble; | 30 class StatusBubble; |
31 class TemplateURL; | 31 class TemplateURL; |
32 | 32 |
33 struct WebApplicationInfo; | 33 struct WebApplicationInfo; |
34 | 34 |
35 namespace autofill { | 35 namespace autofill { |
36 class PasswordGenerator; | 36 class PasswordGenerator; |
msw
2014/09/06 02:15:25
Remove these forward declarations and the autofill
| |
37 struct PasswordForm; | 37 struct PasswordForm; |
38 } | 38 } |
39 namespace content { | 39 namespace content { |
40 class WebContents; | 40 class WebContents; |
41 struct NativeWebKeyboardEvent; | 41 struct NativeWebKeyboardEvent; |
42 struct SSLStatus; | 42 struct SSLStatus; |
43 } | 43 } |
44 | 44 |
45 namespace extensions { | 45 namespace extensions { |
46 class Command; | 46 class Command; |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
373 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, | 373 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, |
374 AVATAR_BUBBLE_MODE_SIGNIN, | 374 AVATAR_BUBBLE_MODE_SIGNIN, |
375 AVATAR_BUBBLE_MODE_ADD_ACCOUNT, | 375 AVATAR_BUBBLE_MODE_ADD_ACCOUNT, |
376 AVATAR_BUBBLE_MODE_REAUTH, | 376 AVATAR_BUBBLE_MODE_REAUTH, |
377 AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN, | 377 AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN, |
378 AVATAR_BUBBLE_MODE_SHOW_ERROR, | 378 AVATAR_BUBBLE_MODE_SHOW_ERROR, |
379 }; | 379 }; |
380 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, | 380 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, |
381 const signin::ManageAccountsParams& manage_accounts_params) = 0; | 381 const signin::ManageAccountsParams& manage_accounts_params) = 0; |
382 | 382 |
383 // Show bubble for password generation positioned relative to |rect|. The | |
384 // subclasses implementing this interface do not own the |password_generator| | |
385 // object which is passed to generate the password. |form| is the form that | |
386 // contains the password field that the bubble will be associated with. | |
387 virtual void ShowPasswordGenerationBubble( | |
388 const gfx::Rect& rect, | |
389 const autofill::PasswordForm& form, | |
390 autofill::PasswordGenerator* password_generator) = 0; | |
391 | |
392 // Invoked when the amount of vertical overscroll changes. |delta_y| is the | 383 // Invoked when the amount of vertical overscroll changes. |delta_y| is the |
393 // amount of overscroll that has occured in the y-direction. | 384 // amount of overscroll that has occured in the y-direction. |
394 virtual void OverscrollUpdate(int delta_y) {} | 385 virtual void OverscrollUpdate(int delta_y) {} |
395 | 386 |
396 // Returns the height inset for RenderView when detached bookmark bar is | 387 // Returns the height inset for RenderView when detached bookmark bar is |
397 // shown. Invoked when a new RenderHostView is created for a non-NTP | 388 // shown. Invoked when a new RenderHostView is created for a non-NTP |
398 // navigation entry and the bookmark bar is detached. | 389 // navigation entry and the bookmark bar is detached. |
399 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; | 390 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; |
400 | 391 |
401 // Executes |command| registered by |extension|. | 392 // Executes |command| registered by |extension|. |
402 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, | 393 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, |
403 const extensions::Command& command) = 0; | 394 const extensions::Command& command) = 0; |
404 | 395 |
405 protected: | 396 protected: |
406 friend class BrowserCloseManager; | 397 friend class BrowserCloseManager; |
407 friend class BrowserView; | 398 friend class BrowserView; |
408 virtual void DestroyBrowser() = 0; | 399 virtual void DestroyBrowser() = 0; |
409 }; | 400 }; |
410 | 401 |
411 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 402 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |