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

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

Issue 606153002: [android] Password generation UI for android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unify default text color. Use integers instead of enums. Simplify delegate. Created 6 years, 2 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 #include "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h " 5 #include "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h "
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 delete this; 207 delete this;
208 } 208 }
209 209
210 void PasswordGenerationPopupControllerImpl::ViewDestroyed() { 210 void PasswordGenerationPopupControllerImpl::ViewDestroyed() {
211 view_ = NULL; 211 view_ = NULL;
212 212
213 Hide(); 213 Hide();
214 } 214 }
215 215
216 void PasswordGenerationPopupControllerImpl::OnSavedPasswordsLinkClicked() { 216 void PasswordGenerationPopupControllerImpl::OnSavedPasswordsLinkClicked() {
217 #if !defined(OS_ANDROID)
aurimas (slooooooooow) 2014/10/16 23:30:01 Are you planning a follow up CL for this?
please use gerrit instead 2014/10/17 05:19:00 Yes, I cannot remove the feature from behind the f
217 chrome::ShowSettingsSubPage( 218 chrome::ShowSettingsSubPage(
218 chrome::FindBrowserWithWebContents(controller_common_.web_contents()), 219 chrome::FindBrowserWithWebContents(controller_common_.web_contents()),
219 chrome::kPasswordManagerSubPage); 220 chrome::kPasswordManagerSubPage);
221 #endif
220 } 222 }
221 223
222 void PasswordGenerationPopupControllerImpl::SetSelectionAtPoint( 224 void PasswordGenerationPopupControllerImpl::SetSelectionAtPoint(
223 const gfx::Point& point) { 225 const gfx::Point& point) {
224 PasswordSelected(view_->IsPointInPasswordBounds(point)); 226 PasswordSelected(view_->IsPointInPasswordBounds(point));
225 } 227 }
226 228
227 bool PasswordGenerationPopupControllerImpl::AcceptSelectedLine() { 229 bool PasswordGenerationPopupControllerImpl::AcceptSelectedLine() {
228 if (!password_selected_) 230 if (!password_selected_)
229 return false; 231 return false;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 273
272 const base::string16& PasswordGenerationPopupControllerImpl::HelpText() { 274 const base::string16& PasswordGenerationPopupControllerImpl::HelpText() {
273 return help_text_; 275 return help_text_;
274 } 276 }
275 277
276 const gfx::Range& PasswordGenerationPopupControllerImpl::HelpTextLinkRange() { 278 const gfx::Range& PasswordGenerationPopupControllerImpl::HelpTextLinkRange() {
277 return link_range_; 279 return link_range_;
278 } 280 }
279 281
280 } // namespace autofill 282 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698