| 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/application_lifetime.h" | 9 #include "chrome/browser/lifetime/application_lifetime.h" |
| 10 #include "chrome/browser/ui/base_window.h" | 10 #include "chrome/browser/ui/base_window.h" |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 // system. | 352 // system. |
| 353 virtual void ShowAvatarBubble(content::WebContents* web_contents, | 353 virtual void ShowAvatarBubble(content::WebContents* web_contents, |
| 354 const gfx::Rect& rect) = 0; | 354 const gfx::Rect& rect) = 0; |
| 355 | 355 |
| 356 // Shows the avatar bubble on the window frame off of the avatar button. | 356 // Shows the avatar bubble on the window frame off of the avatar button. |
| 357 virtual void ShowAvatarBubbleFromAvatarButton() = 0; | 357 virtual void ShowAvatarBubbleFromAvatarButton() = 0; |
| 358 | 358 |
| 359 // Show bubble for password generation positioned relative to |rect|. The | 359 // Show bubble for password generation positioned relative to |rect|. The |
| 360 // subclasses implementing this interface do not own the |password_generator| | 360 // subclasses implementing this interface do not own the |password_generator| |
| 361 // object which is passed to generate the password. |form| is the form that | 361 // object which is passed to generate the password. |form| is the form that |
| 362 // contains the password field that the bubble will be associated with. A | 362 // contains the password field that the bubble will be associated with. |
| 363 // stub implementation is provided since this feature is currently not | |
| 364 // available on mac. | |
| 365 virtual void ShowPasswordGenerationBubble( | 363 virtual void ShowPasswordGenerationBubble( |
| 366 const gfx::Rect& rect, | 364 const gfx::Rect& rect, |
| 367 const content::PasswordForm& form, | 365 const content::PasswordForm& form, |
| 368 autofill::PasswordGenerator* password_generator) {} | 366 autofill::PasswordGenerator* password_generator) = 0; |
| 369 | 367 |
| 370 protected: | 368 protected: |
| 371 friend void browser::CloseAllBrowsers(); | 369 friend void browser::CloseAllBrowsers(); |
| 372 friend class BrowserView; | 370 friend class BrowserView; |
| 373 virtual void DestroyBrowser() = 0; | 371 virtual void DestroyBrowser() = 0; |
| 374 }; | 372 }; |
| 375 | 373 |
| 376 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) | 374 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) |
| 377 class BookmarkBarView; | 375 class BookmarkBarView; |
| 378 class LocationBarView; | 376 class LocationBarView; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 398 | 396 |
| 399 // Returns the ToolbarView. | 397 // Returns the ToolbarView. |
| 400 virtual ToolbarView* GetToolbarView() const = 0; | 398 virtual ToolbarView* GetToolbarView() const = 0; |
| 401 #endif | 399 #endif |
| 402 | 400 |
| 403 protected: | 401 protected: |
| 404 virtual ~BrowserWindowTesting() {} | 402 virtual ~BrowserWindowTesting() {} |
| 405 }; | 403 }; |
| 406 | 404 |
| 407 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 405 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |