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

Unified Diff: ios/chrome/browser/ui/static_content/static_html_view_controller.h

Issue 2627093003: Reuse context menu in StaticHTMLViewController (Closed)
Patch Set: fix DEPS Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/static_content/static_html_view_controller.h
diff --git a/ios/chrome/browser/ui/static_content/static_html_view_controller.h b/ios/chrome/browser/ui/static_content/static_html_view_controller.h
index e1f9b186f55a01146b17ce646c28a5e2dace40fc..8d6af90831db77865376f9a65b1617775be4cb82 100644
--- a/ios/chrome/browser/ui/static_content/static_html_view_controller.h
+++ b/ios/chrome/browser/ui/static_content/static_html_view_controller.h
@@ -12,6 +12,7 @@
#import "ios/web/public/block_types.h"
@protocol CRWNativeContentDelegate;
+@protocol CRWContextMenuControllerDelegate;
namespace web {
class BrowserState;
@@ -75,7 +76,9 @@ typedef void (^HtmlCallback)(NSString*);
// loading resources and must not be null.
jif 2017/01/12 17:13:12 Say that |contextMenuDelegate| can be nil.
Olivier 2017/01/13 10:20:25 Argument removed.
- (instancetype)initWithFileURL:(const GURL&)fileURL
allowingReadAccessToURL:(const GURL&)resourcesRoot
- browserState:(web::BrowserState*)browserState;
+ browserState:(web::BrowserState*)browserState
+ contextMenuDelegate:
+ (id<CRWContextMenuControllerDelegate>)contextMenuDelegate;
// Set the |loader| to use to allow navigation to external URL. The |referrer|
// is the URL that will be used as referrer for those navigations.

Powered by Google App Engine
This is Rietveld 408576698