| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |