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

Side by Side Diff: ios/chrome/browser/ui/omnibox/page_info_view_controller.mm

Issue 2624963004: iOS: Add the Page Info password/credit card string for HTTP pages. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « ios/chrome/browser/ui/omnibox/page_info_model.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #import "ios/chrome/browser/ui/omnibox/page_info_view_controller.h" 5 #import "ios/chrome/browser/ui/omnibox/page_info_view_controller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/mac/bundle_locations.h" 9 #include "base/mac/bundle_locations.h"
10 #import "base/mac/foundation_util.h" 10 #import "base/mac/foundation_util.h"
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 } 462 }
463 UIButton* button = [[[UIButton alloc] initWithFrame:CGRectZero] autorelease]; 463 UIButton* button = [[[UIButton alloc] initWithFrame:CGRectZero] autorelease];
464 int messageId = IDS_IOS_PAGE_INFO_RELOAD; 464 int messageId = IDS_IOS_PAGE_INFO_RELOAD;
465 NSInteger tag = IDC_RELOAD; 465 NSInteger tag = IDC_RELOAD;
466 NSString* accessibilityID = @"Reload button"; 466 NSString* accessibilityID = @"Reload button";
467 switch (buttonAction) { 467 switch (buttonAction) {
468 case PageInfoModel::BUTTON_NONE: 468 case PageInfoModel::BUTTON_NONE:
469 NOTREACHED(); 469 NOTREACHED();
470 return nil; 470 return nil;
471 case PageInfoModel::BUTTON_SHOW_SECURITY_HELP: 471 case PageInfoModel::BUTTON_SHOW_SECURITY_HELP:
472 messageId = IDS_PAGE_INFO_HELP_CENTER_LINK; 472 messageId = IDS_LEARN_MORE;
473 tag = IDC_SHOW_SECURITY_HELP; 473 tag = IDC_SHOW_SECURITY_HELP;
474 accessibilityID = @"What do these mean?"; 474 accessibilityID = @"Learn more";
475 break; 475 break;
476 case PageInfoModel::BUTTON_RELOAD: 476 case PageInfoModel::BUTTON_RELOAD:
477 messageId = IDS_IOS_PAGE_INFO_RELOAD; 477 messageId = IDS_IOS_PAGE_INFO_RELOAD;
478 tag = IDC_RELOAD; 478 tag = IDC_RELOAD;
479 accessibilityID = @"Reload button"; 479 accessibilityID = @"Reload button";
480 [button addTarget:self 480 [button addTarget:self
481 action:@selector(dismiss) 481 action:@selector(dismiss)
482 forControlEvents:UIControlEventTouchUpInside]; 482 forControlEvents:UIControlEventTouchUpInside];
483 break; 483 break;
484 }; 484 };
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 [opacityAnimation setFromValue:@1]; 628 [opacityAnimation setFromValue:@1];
629 [opacityAnimation setToValue:@0]; 629 [opacityAnimation setToValue:@0];
630 [[containerView_ layer] addAnimation:opacityAnimation forKey:@"animateOut"]; 630 [[containerView_ layer] addAnimation:opacityAnimation forKey:@"animateOut"];
631 631
632 [popupContainer_ setAlpha:0]; 632 [popupContainer_ setAlpha:0];
633 [containerView_ setAlpha:0]; 633 [containerView_ setAlpha:0];
634 [CATransaction commit]; 634 [CATransaction commit];
635 } 635 }
636 636
637 @end 637 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/omnibox/page_info_model.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698