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 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|. A stub | 361 // Show bubble for password generation positioned relative to |rect|. A stub |
362 // implementation is provided since this feature is currently only available | 362 // implementation is provided since this feature is currently only available |
363 // for Windows. | 363 // for Windows. |
364 virtual void ShowPasswordGenerationBubble(const gfx::Rect& rect) {} | 364 virtual void ShowPasswordGenerationBubble(const gfx::Rect& rect, |
| 365 int max_length) {} |
365 | 366 |
366 protected: | 367 protected: |
367 friend void browser::CloseAllBrowsers(); | 368 friend void browser::CloseAllBrowsers(); |
368 friend class BrowserView; | 369 friend class BrowserView; |
369 virtual void DestroyBrowser() = 0; | 370 virtual void DestroyBrowser() = 0; |
370 }; | 371 }; |
371 | 372 |
372 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) | 373 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) |
373 class BookmarkBarView; | 374 class BookmarkBarView; |
374 class LocationBarView; | 375 class LocationBarView; |
(...skipping 19 matching lines...) Expand all Loading... |
394 | 395 |
395 // Returns the ToolbarView. | 396 // Returns the ToolbarView. |
396 virtual ToolbarView* GetToolbarView() const = 0; | 397 virtual ToolbarView* GetToolbarView() const = 0; |
397 #endif | 398 #endif |
398 | 399 |
399 protected: | 400 protected: |
400 virtual ~BrowserWindowTesting() {} | 401 virtual ~BrowserWindowTesting() {} |
401 }; | 402 }; |
402 | 403 |
403 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 404 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |