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/ui/bookmarks/bookmark_bar.h" | 10 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 class LocationBar; | 25 class LocationBar; |
26 class Profile; | 26 class Profile; |
27 class StatusBubble; | 27 class StatusBubble; |
28 class TemplateURL; | 28 class TemplateURL; |
29 #if !defined(OS_MACOSX) | 29 #if !defined(OS_MACOSX) |
30 class ToolbarView; | 30 class ToolbarView; |
31 #endif | 31 #endif |
32 | 32 |
33 namespace autofill { | 33 namespace autofill { |
34 class PasswordGenerator; | 34 class PasswordGenerator; |
| 35 struct PasswordForm; |
35 } | 36 } |
36 namespace content { | 37 namespace content { |
37 class WebContents; | 38 class WebContents; |
38 struct NativeWebKeyboardEvent; | 39 struct NativeWebKeyboardEvent; |
39 struct PasswordForm; | |
40 struct SSLStatus; | 40 struct SSLStatus; |
41 } | 41 } |
42 | 42 |
43 namespace extensions { | 43 namespace extensions { |
44 class Extension; | 44 class Extension; |
45 } | 45 } |
46 | 46 |
47 namespace gfx { | 47 namespace gfx { |
48 class Rect; | 48 class Rect; |
49 class Size; | 49 class Size; |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 | 348 |
349 // Shows the avatar bubble on the window frame off of the avatar button. | 349 // Shows the avatar bubble on the window frame off of the avatar button. |
350 virtual void ShowAvatarBubbleFromAvatarButton() = 0; | 350 virtual void ShowAvatarBubbleFromAvatarButton() = 0; |
351 | 351 |
352 // Show bubble for password generation positioned relative to |rect|. The | 352 // Show bubble for password generation positioned relative to |rect|. The |
353 // subclasses implementing this interface do not own the |password_generator| | 353 // subclasses implementing this interface do not own the |password_generator| |
354 // object which is passed to generate the password. |form| is the form that | 354 // object which is passed to generate the password. |form| is the form that |
355 // contains the password field that the bubble will be associated with. | 355 // contains the password field that the bubble will be associated with. |
356 virtual void ShowPasswordGenerationBubble( | 356 virtual void ShowPasswordGenerationBubble( |
357 const gfx::Rect& rect, | 357 const gfx::Rect& rect, |
358 const content::PasswordForm& form, | 358 const autofill::PasswordForm& form, |
359 autofill::PasswordGenerator* password_generator) = 0; | 359 autofill::PasswordGenerator* password_generator) = 0; |
360 | 360 |
361 // Invoked when the amount of vertical overscroll changes. |delta_y| is the | 361 // Invoked when the amount of vertical overscroll changes. |delta_y| is the |
362 // amount of overscroll that has occured in the y-direction. | 362 // amount of overscroll that has occured in the y-direction. |
363 virtual void OverscrollUpdate(int delta_y) {} | 363 virtual void OverscrollUpdate(int delta_y) {} |
364 | 364 |
365 // Returns the height inset for RenderView when detached bookmark bar is | 365 // Returns the height inset for RenderView when detached bookmark bar is |
366 // shown. Invoked when a new RenderHostView is created for a non-NTP | 366 // shown. Invoked when a new RenderHostView is created for a non-NTP |
367 // navigation entry and the bookmark bar is detached. | 367 // navigation entry and the bookmark bar is detached. |
368 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; | 368 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; |
(...skipping 29 matching lines...) Expand all Loading... |
398 | 398 |
399 // Returns the ToolbarView. | 399 // Returns the ToolbarView. |
400 virtual ToolbarView* GetToolbarView() const = 0; | 400 virtual ToolbarView* GetToolbarView() const = 0; |
401 #endif | 401 #endif |
402 | 402 |
403 protected: | 403 protected: |
404 virtual ~BrowserWindowTesting() {} | 404 virtual ~BrowserWindowTesting() {} |
405 }; | 405 }; |
406 | 406 |
407 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 407 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |