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

Side by Side Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 1891863004: Copy contents of ui/base/ios into ios/chrome/browser/ui/context_menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix HardwardKeyboard test Created 4 years, 8 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 | « ios/chrome/ios_chrome_tests.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/ui/crw_web_controller.h" 5 #import "ios/web/web_state/ui/crw_web_controller.h"
6 6
7 #import <objc/runtime.h> 7 #import <objc/runtime.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <cmath> 10 #include <cmath>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 #import "ios/web/web_state/ui/crw_wk_web_view_web_controller.h" 89 #import "ios/web/web_state/ui/crw_wk_web_view_web_controller.h"
90 #import "ios/web/web_state/ui/wk_web_view_configuration_provider.h" 90 #import "ios/web/web_state/ui/wk_web_view_configuration_provider.h"
91 #import "ios/web/web_state/web_controller_observer_bridge.h" 91 #import "ios/web/web_state/web_controller_observer_bridge.h"
92 #include "ios/web/web_state/web_state_facade_delegate.h" 92 #include "ios/web/web_state/web_state_facade_delegate.h"
93 #import "ios/web/web_state/web_state_impl.h" 93 #import "ios/web/web_state/web_state_impl.h"
94 #import "ios/web/web_state/web_view_internal_creation_util.h" 94 #import "ios/web/web_state/web_view_internal_creation_util.h"
95 #import "ios/web/web_state/wk_web_view_security_util.h" 95 #import "ios/web/web_state/wk_web_view_security_util.h"
96 #import "ios/web/webui/crw_web_ui_manager.h" 96 #import "ios/web/webui/crw_web_ui_manager.h"
97 #import "net/base/mac/url_conversions.h" 97 #import "net/base/mac/url_conversions.h"
98 #include "net/base/net_errors.h" 98 #include "net/base/net_errors.h"
99 #import "ui/base/ios/cru_context_menu_holder.h"
100 #include "ui/base/page_transition_types.h" 99 #include "ui/base/page_transition_types.h"
101 #include "url/gurl.h" 100 #include "url/gurl.h"
102 #include "url/url_constants.h" 101 #include "url/url_constants.h"
103 102
104 using base::UserMetricsAction; 103 using base::UserMetricsAction;
105 using web::NavigationManager; 104 using web::NavigationManager;
106 using web::NavigationManagerImpl; 105 using web::NavigationManagerImpl;
107 using web::WebState; 106 using web::WebState;
108 using web::WebStateImpl; 107 using web::WebStateImpl;
109 108
(...skipping 5417 matching lines...) Expand 10 before | Expand all | Expand 10 after
5527 } 5526 }
5528 5527
5529 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; 5528 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC;
5530 } 5529 }
5531 5530
5532 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action { 5531 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action {
5533 return [action.request valueForHTTPHeaderField:@"Referer"]; 5532 return [action.request valueForHTTPHeaderField:@"Referer"];
5534 } 5533 }
5535 5534
5536 @end 5535 @end
OLDNEW
« no previous file with comments | « ios/chrome/ios_chrome_tests.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698