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/signin/signin_header_helper.h" |
10 #include "chrome/browser/translate/translate_tab_helper.h" | 11 #include "chrome/browser/translate/translate_tab_helper.h" |
11 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" | 12 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
12 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
13 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h" | 14 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h" |
14 #include "chrome/browser/ui/host_desktop.h" | 15 #include "chrome/browser/ui/host_desktop.h" |
15 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" | 16 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" |
16 #include "chrome/common/content_settings_types.h" | 17 #include "chrome/common/content_settings_types.h" |
17 #include "components/translate/core/common/translate_errors.h" | 18 #include "components/translate/core/common/translate_errors.h" |
18 #include "ui/base/base_window.h" | 19 #include "ui/base/base_window.h" |
19 #include "ui/base/window_open_disposition.h" | 20 #include "ui/base/window_open_disposition.h" |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 static chrome::HostDesktopType AdjustHostDesktopType( | 358 static chrome::HostDesktopType AdjustHostDesktopType( |
358 chrome::HostDesktopType desktop_type); | 359 chrome::HostDesktopType desktop_type); |
359 | 360 |
360 // Shows the avatar bubble inside |web_contents|. The bubble is positioned | 361 // Shows the avatar bubble inside |web_contents|. The bubble is positioned |
361 // relative to |rect|. |rect| should be in the |web_contents| coordinate | 362 // relative to |rect|. |rect| should be in the |web_contents| coordinate |
362 // system. | 363 // system. |
363 virtual void ShowAvatarBubble(content::WebContents* web_contents, | 364 virtual void ShowAvatarBubble(content::WebContents* web_contents, |
364 const gfx::Rect& rect) = 0; | 365 const gfx::Rect& rect) = 0; |
365 | 366 |
366 // Shows the avatar bubble on the window frame off of the avatar button with | 367 // Shows the avatar bubble on the window frame off of the avatar button with |
367 // the given mode. | 368 // the given mode. The Service Type specified by GAIA is provided as well. |
368 enum AvatarBubbleMode { | 369 enum AvatarBubbleMode { |
369 AVATAR_BUBBLE_MODE_DEFAULT, | 370 AVATAR_BUBBLE_MODE_DEFAULT, |
370 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, | 371 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, |
371 AVATAR_BUBBLE_MODE_SIGNIN, | 372 AVATAR_BUBBLE_MODE_SIGNIN, |
372 AVATAR_BUBBLE_MODE_REAUTH | 373 AVATAR_BUBBLE_MODE_REAUTH, |
373 }; | 374 }; |
374 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode) = 0; | 375 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, |
| 376 signin::GAIAServiceType service_type) = 0; |
375 | 377 |
376 // Show bubble for password generation positioned relative to |rect|. The | 378 // Show bubble for password generation positioned relative to |rect|. The |
377 // subclasses implementing this interface do not own the |password_generator| | 379 // subclasses implementing this interface do not own the |password_generator| |
378 // object which is passed to generate the password. |form| is the form that | 380 // object which is passed to generate the password. |form| is the form that |
379 // contains the password field that the bubble will be associated with. | 381 // contains the password field that the bubble will be associated with. |
380 virtual void ShowPasswordGenerationBubble( | 382 virtual void ShowPasswordGenerationBubble( |
381 const gfx::Rect& rect, | 383 const gfx::Rect& rect, |
382 const autofill::PasswordForm& form, | 384 const autofill::PasswordForm& form, |
383 autofill::PasswordGenerator* password_generator) = 0; | 385 autofill::PasswordGenerator* password_generator) = 0; |
384 | 386 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 | 437 |
436 // Returns the ToolbarView. | 438 // Returns the ToolbarView. |
437 virtual ToolbarView* GetToolbarView() const = 0; | 439 virtual ToolbarView* GetToolbarView() const = 0; |
438 #endif | 440 #endif |
439 | 441 |
440 protected: | 442 protected: |
441 virtual ~BrowserWindowTesting() {} | 443 virtual ~BrowserWindowTesting() {} |
442 }; | 444 }; |
443 | 445 |
444 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 446 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |