| 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/web/web_state/crw_web_view_proxy_impl.h" | 5 #import "ios/web/web_state/ui/crw_web_view_proxy_impl.h" |
| 6 | 6 |
| 7 #import "base/mac/scoped_nsobject.h" | 7 #import "base/mac/scoped_nsobject.h" |
| 8 #import "ios/web/public/web_state/crw_web_view_scroll_view_proxy.h" | |
| 9 #import "ios/web/public/web_state/ui/crw_content_view.h" | 8 #import "ios/web/public/web_state/ui/crw_content_view.h" |
| 9 #import "ios/web/public/web_state/ui/crw_web_view_scroll_view_proxy.h" |
| 10 #import "ios/web/web_state/ui/crw_web_controller.h" | 10 #import "ios/web/web_state/ui/crw_web_controller.h" |
| 11 | 11 |
| 12 #if !defined(__has_feature) || !__has_feature(objc_arc) | 12 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 13 #error "This file requires ARC support." | 13 #error "This file requires ARC support." |
| 14 #endif | 14 #endif |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 // Returns the first responder in the subviews of |view|, or nil if no view in | 18 // Returns the first responder in the subviews of |view|, or nil if no view in |
| 19 // the subtree is the first responder. | 19 // the subtree is the first responder. |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 return nil; | 173 return nil; |
| 174 UIView* firstResponder = GetFirstResponderSubview(_contentView); | 174 UIView* firstResponder = GetFirstResponderSubview(_contentView); |
| 175 return firstResponder.inputAssistantItem; | 175 return firstResponder.inputAssistantItem; |
| 176 } | 176 } |
| 177 | 177 |
| 178 - (BOOL)becomeFirstResponder { | 178 - (BOOL)becomeFirstResponder { |
| 179 return [_contentView becomeFirstResponder]; | 179 return [_contentView becomeFirstResponder]; |
| 180 } | 180 } |
| 181 | 181 |
| 182 @end | 182 @end |
| OLD | NEW |