OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
10 #include "chrome/browser/lifetime/application_lifetime.h" | 10 #include "chrome/browser/lifetime/application_lifetime.h" |
(...skipping 11 matching lines...) Expand all Loading... | |
22 class GURL; | 22 class GURL; |
23 class LocationBar; | 23 class LocationBar; |
24 class Profile; | 24 class Profile; |
25 class StatusBubble; | 25 class StatusBubble; |
26 class TabContentsWrapper; | 26 class TabContentsWrapper; |
27 class TemplateURL; | 27 class TemplateURL; |
28 #if !defined(OS_MACOSX) | 28 #if !defined(OS_MACOSX) |
29 class ToolbarView; | 29 class ToolbarView; |
30 #endif | 30 #endif |
31 | 31 |
32 namespace autofill { | |
33 class PasswordGenerator; | |
34 } | |
32 namespace content { | 35 namespace content { |
33 class WebContents; | 36 class WebContents; |
34 struct NativeWebKeyboardEvent; | 37 struct NativeWebKeyboardEvent; |
35 struct SSLStatus; | 38 struct SSLStatus; |
36 } | 39 } |
37 | 40 |
38 namespace extensions { | 41 namespace extensions { |
39 class Extension; | 42 class Extension; |
40 } | 43 } |
41 | 44 |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
354 // system. | 357 // system. |
355 virtual void ShowAvatarBubble(content::WebContents* web_contents, | 358 virtual void ShowAvatarBubble(content::WebContents* web_contents, |
356 const gfx::Rect& rect) = 0; | 359 const gfx::Rect& rect) = 0; |
357 | 360 |
358 // Shows the avatar bubble on the window frame off of the avatar button. | 361 // Shows the avatar bubble on the window frame off of the avatar button. |
359 virtual void ShowAvatarBubbleFromAvatarButton() = 0; | 362 virtual void ShowAvatarBubbleFromAvatarButton() = 0; |
360 | 363 |
361 // Show bubble for password generation positioned relative to |rect|. A stub | 364 // Show bubble for password generation positioned relative to |rect|. A stub |
362 // implementation is provided since this feature is currently only available | 365 // implementation is provided since this feature is currently only available |
363 // for Windows. | 366 // for Windows. |
364 virtual void ShowPasswordGenerationBubble(const gfx::Rect& rect) {} | 367 virtual void ShowPasswordGenerationBubble( |
368 const gfx::Rect& rect, | |
369 autofill::PasswordGenerator* password_generator) {} | |
Ilya Sherman
2012/06/04 21:17:52
This default implementation should be careful not
zysxqn
2012/06/04 22:40:15
NA now.
| |
365 | 370 |
366 protected: | 371 protected: |
367 friend void browser::CloseAllBrowsers(); | 372 friend void browser::CloseAllBrowsers(); |
368 friend class BrowserView; | 373 friend class BrowserView; |
369 virtual void DestroyBrowser() = 0; | 374 virtual void DestroyBrowser() = 0; |
370 }; | 375 }; |
371 | 376 |
372 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) | 377 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) |
373 class BookmarkBarView; | 378 class BookmarkBarView; |
374 class LocationBarView; | 379 class LocationBarView; |
(...skipping 19 matching lines...) Expand all Loading... | |
394 | 399 |
395 // Returns the ToolbarView. | 400 // Returns the ToolbarView. |
396 virtual ToolbarView* GetToolbarView() const = 0; | 401 virtual ToolbarView* GetToolbarView() const = 0; |
397 #endif | 402 #endif |
398 | 403 |
399 protected: | 404 protected: |
400 virtual ~BrowserWindowTesting() {} | 405 virtual ~BrowserWindowTesting() {} |
401 }; | 406 }; |
402 | 407 |
403 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 408 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |