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

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: Split user-menu data based on GAIA service type 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 }; 375 };
372 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode) = 0; 376 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode,
377 signin::GAIA_SERVICE_TYPE service_type) = 0;
373 378
374 // Show bubble for password generation positioned relative to |rect|. The 379 // Show bubble for password generation positioned relative to |rect|. The
375 // subclasses implementing this interface do not own the |password_generator| 380 // subclasses implementing this interface do not own the |password_generator|
376 // object which is passed to generate the password. |form| is the form that 381 // object which is passed to generate the password. |form| is the form that
377 // contains the password field that the bubble will be associated with. 382 // contains the password field that the bubble will be associated with.
378 virtual void ShowPasswordGenerationBubble( 383 virtual void ShowPasswordGenerationBubble(
379 const gfx::Rect& rect, 384 const gfx::Rect& rect,
380 const autofill::PasswordForm& form, 385 const autofill::PasswordForm& form,
381 autofill::PasswordGenerator* password_generator) = 0; 386 autofill::PasswordGenerator* password_generator) = 0;
382 387
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 438
434 // Returns the ToolbarView. 439 // Returns the ToolbarView.
435 virtual ToolbarView* GetToolbarView() const = 0; 440 virtual ToolbarView* GetToolbarView() const = 0;
436 #endif 441 #endif
437 442
438 protected: 443 protected:
439 virtual ~BrowserWindowTesting() {} 444 virtual ~BrowserWindowTesting() {}
440 }; 445 };
441 446
442 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 447 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698