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

Side by Side Diff: chrome/browser/ui/autofill/password_generation_popup_controller_impl.h

Issue 447873004: [Password Generation] Wait longer to dismiss suggestion UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 6 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 int max_length, 53 int max_length,
54 password_manager::PasswordManager* password_manager, 54 password_manager::PasswordManager* password_manager,
55 PasswordGenerationPopupObserver* observer, 55 PasswordGenerationPopupObserver* observer,
56 content::WebContents* web_contents, 56 content::WebContents* web_contents,
57 gfx::NativeView container_view); 57 gfx::NativeView container_view);
58 virtual ~PasswordGenerationPopupControllerImpl(); 58 virtual ~PasswordGenerationPopupControllerImpl();
59 59
60 // Create a PasswordGenerationPopupView if one doesn't already exist. 60 // Create a PasswordGenerationPopupView if one doesn't already exist.
61 // If |display_password| is true, a generated password is shown that can be 61 // If |display_password| is true, a generated password is shown that can be
62 // selected by the user. Otherwise just the text explaining generated 62 // selected by the user. Otherwise just the text explaining generated
63 // passwords is shown. 63 // passwords is shown. Idempotent.
64 void Show(bool display_password); 64 void Show(bool display_password);
65 65
66 // Hides the popup and destroys |this|. 66 // Hides the popup and destroys |this|.
67 void HideAndDestroy(); 67 void HideAndDestroy();
68 68
69 // Accessors. 69 // Accessors.
70 content::WebContents* web_contents() { 70 content::WebContents* web_contents() {
71 return controller_common_.web_contents(); 71 return controller_common_.web_contents();
72 } 72 }
73 const gfx::RectF& element_bounds() { 73 const gfx::RectF& element_bounds() {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 gfx::Rect popup_bounds_; 149 gfx::Rect popup_bounds_;
150 150
151 base::WeakPtrFactory<PasswordGenerationPopupControllerImpl> weak_ptr_factory_; 151 base::WeakPtrFactory<PasswordGenerationPopupControllerImpl> weak_ptr_factory_;
152 152
153 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupControllerImpl); 153 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupControllerImpl);
154 }; 154 };
155 155
156 } // namespace autofill 156 } // namespace autofill
157 157
158 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_ H_ 158 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_ H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698