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

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

Issue 2727233003: Uses child views in Autofill Popup so we can trigger (Closed)
Patch Set: (int) to NSInteger Created 3 years, 9 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 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 bool PasswordGenerationPopupControllerImpl::IsRTL() const { 270 bool PasswordGenerationPopupControllerImpl::IsRTL() const {
271 return base::i18n::IsRTL(); 271 return base::i18n::IsRTL();
272 } 272 }
273 273
274 const std::vector<autofill::Suggestion> 274 const std::vector<autofill::Suggestion>
275 PasswordGenerationPopupControllerImpl::GetSuggestions() { 275 PasswordGenerationPopupControllerImpl::GetSuggestions() {
276 return std::vector<autofill::Suggestion>(); 276 return std::vector<autofill::Suggestion>();
277 } 277 }
278 278
279 #if !defined(OS_ANDROID) 279 #if !defined(OS_ANDROID)
280 int PasswordGenerationPopupControllerImpl::GetElidedValueWidthForRow( 280 int PasswordGenerationPopupControllerImpl::GetElidedValueWidthForRow(int row) {
281 size_t row) {
282 return 0; 281 return 0;
283 } 282 }
284 283
285 int PasswordGenerationPopupControllerImpl::GetElidedLabelWidthForRow( 284 int PasswordGenerationPopupControllerImpl::GetElidedLabelWidthForRow(int row) {
286 size_t row) {
287 return 0; 285 return 0;
288 } 286 }
289 #endif 287 #endif
290 288
291 bool PasswordGenerationPopupControllerImpl::display_password() const { 289 bool PasswordGenerationPopupControllerImpl::display_password() const {
292 return display_password_; 290 return display_password_;
293 } 291 }
294 292
295 bool PasswordGenerationPopupControllerImpl::password_selected() const { 293 bool PasswordGenerationPopupControllerImpl::password_selected() const {
296 return password_selected_; 294 return password_selected_;
297 } 295 }
298 296
299 base::string16 PasswordGenerationPopupControllerImpl::password() const { 297 base::string16 PasswordGenerationPopupControllerImpl::password() const {
300 return current_password_; 298 return current_password_;
301 } 299 }
302 300
303 base::string16 PasswordGenerationPopupControllerImpl::SuggestedText() { 301 base::string16 PasswordGenerationPopupControllerImpl::SuggestedText() {
304 return l10n_util::GetStringUTF16(IDS_PASSWORD_GENERATION_SUGGESTION); 302 return l10n_util::GetStringUTF16(IDS_PASSWORD_GENERATION_SUGGESTION);
305 } 303 }
306 304
307 const base::string16& PasswordGenerationPopupControllerImpl::HelpText() { 305 const base::string16& PasswordGenerationPopupControllerImpl::HelpText() {
308 return help_text_; 306 return help_text_;
309 } 307 }
310 308
311 const gfx::Range& PasswordGenerationPopupControllerImpl::HelpTextLinkRange() { 309 const gfx::Range& PasswordGenerationPopupControllerImpl::HelpTextLinkRange() {
312 return link_range_; 310 return link_range_;
313 } 311 }
314 312
315 } // namespace autofill 313 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698