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

Side by Side Diff: chrome/browser/ui/gtk/password_generation_bubble_gtk.h

Issue 10787023: Adding UMA stats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 (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_GTK_PASSWORD_GENERATION_BUBBLE_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_PASSWORD_GENERATION_BUBBLE_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_PASSWORD_GENERATION_BUBBLE_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_PASSWORD_GENERATION_BUBBLE_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 18 matching lines...) Expand all
29 const webkit::forms::PasswordForm& form, 29 const webkit::forms::PasswordForm& form,
30 TabContents* tab, 30 TabContents* tab,
31 autofill::PasswordGenerator* password_generator); 31 autofill::PasswordGenerator* password_generator);
32 virtual ~PasswordGenerationBubbleGtk(); 32 virtual ~PasswordGenerationBubbleGtk();
33 33
34 private: 34 private:
35 CHROMEGTK_CALLBACK_0(PasswordGenerationBubbleGtk, void, OnDestroy); 35 CHROMEGTK_CALLBACK_0(PasswordGenerationBubbleGtk, void, OnDestroy);
36 CHROMEGTK_CALLBACK_0(PasswordGenerationBubbleGtk, void, OnAcceptClicked); 36 CHROMEGTK_CALLBACK_0(PasswordGenerationBubbleGtk, void, OnAcceptClicked);
37 CHROMEGTK_CALLBACK_2(PasswordGenerationBubbleGtk, void, OnRegenerateClicked, 37 CHROMEGTK_CALLBACK_2(PasswordGenerationBubbleGtk, void, OnRegenerateClicked,
38 GtkEntryIconPosition, GdkEvent*); 38 GtkEntryIconPosition, GdkEvent*);
39 CHROMEGTK_CALLBACK_0(PasswordGenerationBubbleGtk, void, OnPasswordEdited);
39 CHROMEG_CALLBACK_0( 40 CHROMEG_CALLBACK_0(
40 PasswordGenerationBubbleGtk, void, OnLearnMoreLinkClicked, GtkButton*); 41 PasswordGenerationBubbleGtk, void, OnLearnMoreLinkClicked, GtkButton*);
41 42
42 BubbleGtk* bubble_; 43 BubbleGtk* bubble_;
43 GtkWidget* text_field_; 44 GtkWidget* text_field_;
44 45
45 // Form that contains the password field that we are generating a password 46 // Form that contains the password field that we are generating a password
46 // for. Used by the password_manager_. 47 // for. Used by the password_manager_.
47 webkit::forms::PasswordForm form_; 48 webkit::forms::PasswordForm form_;
48 49
49 // TabContents associated with the button that spawned this bubble. 50 // TabContents associated with the button that spawned this bubble.
50 TabContents* tab_; 51 TabContents* tab_;
51 52
52 // Object that deals with generating passwords. The class won't take the 53 // Object that deals with generating passwords. The class won't take the
53 // ownership of it. 54 // ownership of it.
54 autofill::PasswordGenerator* password_generator_; 55 autofill::PasswordGenerator* password_generator_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationBubbleGtk); 57 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationBubbleGtk);
57 }; 58 };
58 59
59 #endif // CHROME_BROWSER_UI_GTK_PASSWORD_GENERATION_BUBBLE_GTK_H_ 60 #endif // CHROME_BROWSER_UI_GTK_PASSWORD_GENERATION_BUBBLE_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698