Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: chrome/browser/ui/browser_window.h

Issue 288493008: UMA Metrics for the user menu, including vasquette-detection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clear service type after profilechooser action. Rename default histogram. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/translate/translate_tab_helper.h" 10 #include "chrome/browser/translate/translate_tab_helper.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 namespace extensions { 47 namespace extensions {
48 class Command; 48 class Command;
49 class Extension; 49 class Extension;
50 } 50 }
51 51
52 namespace gfx { 52 namespace gfx {
53 class Rect; 53 class Rect;
54 class Size; 54 class Size;
55 } 55 }
56 56
57 namespace signin {
58 enum GAIA_SERVICE_TYPE;
59 }
60
57 namespace web_modal { 61 namespace web_modal {
58 class WebContentsModalDialogHost; 62 class WebContentsModalDialogHost;
59 } 63 }
60 64
61 //////////////////////////////////////////////////////////////////////////////// 65 ////////////////////////////////////////////////////////////////////////////////
62 // BrowserWindow interface 66 // BrowserWindow interface
63 // An interface implemented by the "view" of the Browser window. 67 // An interface implemented by the "view" of the Browser window.
64 // This interface includes ui::BaseWindow methods as well as Browser window 68 // This interface includes ui::BaseWindow methods as well as Browser window
65 // specific methods. 69 // specific methods.
66 // 70 //
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 static chrome::HostDesktopType AdjustHostDesktopType( 361 static chrome::HostDesktopType AdjustHostDesktopType(
358 chrome::HostDesktopType desktop_type); 362 chrome::HostDesktopType desktop_type);
359 363
360 // Shows the avatar bubble inside |web_contents|. The bubble is positioned 364 // Shows the avatar bubble inside |web_contents|. The bubble is positioned
361 // relative to |rect|. |rect| should be in the |web_contents| coordinate 365 // relative to |rect|. |rect| should be in the |web_contents| coordinate
362 // system. 366 // system.
363 virtual void ShowAvatarBubble(content::WebContents* web_contents, 367 virtual void ShowAvatarBubble(content::WebContents* web_contents,
364 const gfx::Rect& rect) = 0; 368 const gfx::Rect& rect) = 0;
365 369
366 // Shows the avatar bubble on the window frame off of the avatar button with 370 // Shows the avatar bubble on the window frame off of the avatar button with
367 // the given mode. 371 // the given mode. The Service Type specified by GAIA is provided as well.
368 enum AvatarBubbleMode { 372 enum AvatarBubbleMode {
369 AVATAR_BUBBLE_MODE_DEFAULT, 373 AVATAR_BUBBLE_MODE_DEFAULT,
370 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, 374 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT,
371 AVATAR_BUBBLE_MODE_SIGNIN, 375 AVATAR_BUBBLE_MODE_SIGNIN,
372 AVATAR_BUBBLE_MODE_REAUTH 376 AVATAR_BUBBLE_MODE_REAUTH,
373 }; 377 };
374 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode) = 0; 378 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode,
379 signin::GAIA_SERVICE_TYPE service_type) = 0;
375 380
376 // Show bubble for password generation positioned relative to |rect|. The 381 // Show bubble for password generation positioned relative to |rect|. The
377 // subclasses implementing this interface do not own the |password_generator| 382 // subclasses implementing this interface do not own the |password_generator|
378 // object which is passed to generate the password. |form| is the form that 383 // 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. 384 // contains the password field that the bubble will be associated with.
380 virtual void ShowPasswordGenerationBubble( 385 virtual void ShowPasswordGenerationBubble(
381 const gfx::Rect& rect, 386 const gfx::Rect& rect,
382 const autofill::PasswordForm& form, 387 const autofill::PasswordForm& form,
383 autofill::PasswordGenerator* password_generator) = 0; 388 autofill::PasswordGenerator* password_generator) = 0;
384 389
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 440
436 // Returns the ToolbarView. 441 // Returns the ToolbarView.
437 virtual ToolbarView* GetToolbarView() const = 0; 442 virtual ToolbarView* GetToolbarView() const = 0;
438 #endif 443 #endif
439 444
440 protected: 445 protected:
441 virtual ~BrowserWindowTesting() {} 446 virtual ~BrowserWindowTesting() {}
442 }; 447 };
443 448
444 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 449 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698