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

Side by Side Diff: ios/chrome/browser/ui/contextual_search/contextual_search_results_view.mm

Issue 2752113002: Moved WebView(ScrollView)Proxy files to ui subdirectory. (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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "ios/chrome/browser/ui/contextual_search/contextual_search_results_view .h" 5 #include "ios/chrome/browser/ui/contextual_search/contextual_search_results_view .h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #import "base/ios/weak_nsobject.h" 9 #import "base/ios/weak_nsobject.h"
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #import "ios/chrome/browser/tabs/tab.h" 11 #import "ios/chrome/browser/tabs/tab.h"
12 #import "ios/chrome/browser/ui/contextual_search/contextual_search_metrics.h" 12 #import "ios/chrome/browser/ui/contextual_search/contextual_search_metrics.h"
13 #import "ios/chrome/browser/ui/contextual_search/contextual_search_panel_view.h" 13 #import "ios/chrome/browser/ui/contextual_search/contextual_search_panel_view.h"
14 #import "ios/chrome/browser/ui/contextual_search/contextual_search_web_state_obs erver.h" 14 #import "ios/chrome/browser/ui/contextual_search/contextual_search_web_state_obs erver.h"
15 #import "ios/chrome/common/material_timing.h" 15 #import "ios/chrome/common/material_timing.h"
16 #include "ios/web/public/load_committed_details.h" 16 #include "ios/web/public/load_committed_details.h"
17 #import "ios/web/public/web_state/crw_web_view_proxy.h"
18 #import "ios/web/public/web_state/crw_web_view_scroll_view_proxy.h"
19 #import "ios/web/public/web_state/ui/crw_native_content_provider.h" 17 #import "ios/web/public/web_state/ui/crw_native_content_provider.h"
18 #import "ios/web/public/web_state/ui/crw_web_view_proxy.h"
19 #import "ios/web/public/web_state/ui/crw_web_view_scroll_view_proxy.h"
20 #import "ios/web/web_state/ui/crw_web_controller.h" 20 #import "ios/web/web_state/ui/crw_web_controller.h"
21 21
22 namespace { 22 namespace {
23 enum SearchResultsViewVisibility { OFFSCREEN, PRELOAD, VISIBLE }; 23 enum SearchResultsViewVisibility { OFFSCREEN, PRELOAD, VISIBLE };
24 } 24 }
25 25
26 @interface ContextualSearchResultsView ()<ContextualSearchWebStateDelegate, 26 @interface ContextualSearchResultsView ()<ContextualSearchWebStateDelegate,
27 CRWNativeContentProvider> 27 CRWNativeContentProvider>
28 28
29 // Can the search results be scrolled currently? 29 // Can the search results be scrolled currently?
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 withError:error 354 withError:error
355 isPost:isPost]; 355 isPost:isPost];
356 356
357 if ([errorController respondsToSelector:@selector(setScrollEnabled:)]) { 357 if ([errorController respondsToSelector:@selector(setScrollEnabled:)]) {
358 [errorController setScrollEnabled:NO]; 358 [errorController setScrollEnabled:NO];
359 } 359 }
360 return errorController; 360 return errorController;
361 } 361 }
362 362
363 @end 363 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/contextual_search/contextual_search_controller.mm ('k') | ios/chrome/browser/ui/fullscreen_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698