| OLD | NEW |
| 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 #import "ios/chrome/browser/ui/bookmarks/bookmark_navigation_controller.h" | 5 #import "ios/chrome/browser/ui/bookmarks/bookmark_navigation_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
| 8 #import "ios/chrome/browser/ui/bookmarks/bookmark_utils_ios.h" | 8 #import "ios/chrome/browser/ui/bookmarks/bookmark_utils_ios.h" |
| 9 | 9 |
| 10 @implementation BookmarkNavigationController | 10 @implementation BookmarkNavigationController |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 [super viewDidLoad]; | 21 [super viewDidLoad]; |
| 22 self.view.backgroundColor = [UIColor whiteColor]; | 22 self.view.backgroundColor = [UIColor whiteColor]; |
| 23 } | 23 } |
| 24 | 24 |
| 25 - (BOOL)disablesAutomaticKeyboardDismissal { | 25 - (BOOL)disablesAutomaticKeyboardDismissal { |
| 26 // This allows us to hide the keyboard when controllers are being displayed in | 26 // This allows us to hide the keyboard when controllers are being displayed in |
| 27 // a modal form sheet on the iPad. | 27 // a modal form sheet on the iPad. |
| 28 return NO; | 28 return NO; |
| 29 } | 29 } |
| 30 | 30 |
| 31 #pragma mark - UIResponder |
| 32 |
| 33 - (BOOL)canBecomeFirstResponder { |
| 34 return YES; |
| 35 } |
| 36 |
| 31 @end | 37 @end |
| OLD | NEW |