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

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

Issue 151503006: Re-land r248110 with ASAN error fixed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Punctuation Created 6 years, 10 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
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 PasswordManager* password_manager, 52 PasswordManager* password_manager,
53 PasswordGenerationPopupObserver* observer, 53 PasswordGenerationPopupObserver* observer,
54 content::WebContents* web_contents, 54 content::WebContents* web_contents,
55 gfx::NativeView container_view); 55 gfx::NativeView container_view);
56 virtual ~PasswordGenerationPopupControllerImpl(); 56 virtual ~PasswordGenerationPopupControllerImpl();
57 57
58 // Create a PasswordGenerationPopupView if one doesn't already exist. 58 // Create a PasswordGenerationPopupView if one doesn't already exist.
59 // Does not update the view if one is already showing. 59 // Does not update the view if one is already showing.
60 void Show(); 60 void Show();
61 61
62 // Hides the popup and destroys |this|.
63 void HideAndDestroy();
64
62 // Accessors. 65 // Accessors.
63 content::WebContents* web_contents() { 66 content::WebContents* web_contents() {
64 return controller_common_.web_contents(); 67 return controller_common_.web_contents();
65 } 68 }
66 const gfx::RectF& element_bounds() { 69 const gfx::RectF& element_bounds() {
67 return controller_common_.element_bounds(); 70 return controller_common_.element_bounds();
68 } 71 }
69 72
70 private: 73 private:
71 PasswordGenerationPopupControllerImpl( 74 PasswordGenerationPopupControllerImpl(
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 gfx::Rect help_bounds_; 143 gfx::Rect help_bounds_;
141 144
142 base::WeakPtrFactory<PasswordGenerationPopupControllerImpl> weak_ptr_factory_; 145 base::WeakPtrFactory<PasswordGenerationPopupControllerImpl> weak_ptr_factory_;
143 146
144 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupControllerImpl); 147 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupControllerImpl);
145 }; 148 };
146 149
147 } // namespace autofill 150 } // namespace autofill
148 151
149 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_ H_ 152 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698