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

Side by Side Diff: ios/chrome/browser/ui/bookmarks/bookmark_navigation_controller.mm

Issue 2718683002: Let modal view controllers become first responder when presented. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | ios/chrome/browser/ui/history/history_panel_view_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/browser/ui/history/history_panel_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698