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