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

Side by Side Diff: ios/chrome/browser/ui/settings/settings_navigation_controller.mm

Issue 2718683002: Let modal view controllers become first responder when presented. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « ios/chrome/browser/ui/reading_list/reading_list_view_controller.mm ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/settings/settings_navigation_controller.h" 5 #import "ios/chrome/browser/ui/settings/settings_navigation_controller.h"
6 6
7 #include "base/ios/ios_util.h" 7 #include "base/ios/ios_util.h"
8 #import "base/ios/weak_nsobject.h" 8 #import "base/ios/weak_nsobject.h"
9 #include "base/mac/foundation_util.h" 9 #include "base/mac/foundation_util.h"
10 #import "base/mac/scoped_nsobject.h" 10 #import "base/mac/scoped_nsobject.h"
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 (UIViewController*)controller { 649 (UIViewController*)controller {
650 NSValue* key = [self keyForController:controller]; 650 NSValue* key = [self keyForController:controller];
651 return [appBarContainedViewControllers_ objectForKey:key]; 651 return [appBarContainedViewControllers_ objectForKey:key];
652 } 652 }
653 653
654 // Returns the dictionary key to use when dealing with |controller|. 654 // Returns the dictionary key to use when dealing with |controller|.
655 - (NSValue*)keyForController:(UIViewController*)controller { 655 - (NSValue*)keyForController:(UIViewController*)controller {
656 return [NSValue valueWithPointer:controller]; 656 return [NSValue valueWithPointer:controller];
657 } 657 }
658 658
659 #pragma mark - UIResponder
660
661 - (BOOL)canBecomeFirstResponder {
662 return YES;
663 }
664
659 @end 665 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/reading_list/reading_list_view_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698