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

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: 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
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 #import "ios/web/web_state/ui/crw_web_controller+protected.h" 85 #import "ios/web/web_state/ui/crw_web_controller+protected.h"
86 #import "ios/web/web_state/ui/crw_web_controller_container_view.h" 86 #import "ios/web/web_state/ui/crw_web_controller_container_view.h"
87 #import "ios/web/web_state/ui/crw_wk_web_view_web_controller.h" 87 #import "ios/web/web_state/ui/crw_wk_web_view_web_controller.h"
88 #import "ios/web/web_state/web_controller_observer_bridge.h" 88 #import "ios/web/web_state/web_controller_observer_bridge.h"
89 #include "ios/web/web_state/web_state_facade_delegate.h" 89 #include "ios/web/web_state/web_state_facade_delegate.h"
90 #import "ios/web/web_state/web_state_impl.h" 90 #import "ios/web/web_state/web_state_impl.h"
91 #import "ios/web/web_state/wk_web_view_security_util.h" 91 #import "ios/web/web_state/wk_web_view_security_util.h"
92 #import "ios/web/webui/crw_web_ui_manager.h" 92 #import "ios/web/webui/crw_web_ui_manager.h"
93 #import "net/base/mac/url_conversions.h" 93 #import "net/base/mac/url_conversions.h"
94 #include "net/base/net_errors.h" 94 #include "net/base/net_errors.h"
95 #import "ui/base/ios/cru_context_menu_holder.h"
96 #include "ui/base/page_transition_types.h" 95 #include "ui/base/page_transition_types.h"
97 #include "url/gurl.h" 96 #include "url/gurl.h"
98 #include "url/url_constants.h" 97 #include "url/url_constants.h"
99 98
100 using base::UserMetricsAction; 99 using base::UserMetricsAction;
101 using web::NavigationManager; 100 using web::NavigationManager;
102 using web::NavigationManagerImpl; 101 using web::NavigationManagerImpl;
103 using web::WebState; 102 using web::WebState;
104 using web::WebStateImpl; 103 using web::WebStateImpl;
105 104
(...skipping 4656 matching lines...) Expand 10 before | Expand all | Expand 10 after
4762 } 4761 }
4763 4762
4764 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; 4763 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC;
4765 } 4764 }
4766 4765
4767 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action { 4766 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action {
4768 return [action.request valueForHTTPHeaderField:@"Referer"]; 4767 return [action.request valueForHTTPHeaderField:@"Referer"];
4769 } 4768 }
4770 4769
4771 @end 4770 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698