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

Side by Side Diff: components/plugins/renderer/webview_plugin.h

Issue 2762553002: Add canUpdateLayout & canHandleGestureEvent to WebViewClient. (Closed)
Patch Set: Fix merge issues. Created 3 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 | « no previous file | components/plugins/renderer/webview_plugin.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ 5 #ifndef COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
6 #define COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ 6 #define COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 public blink::WebFrameClient { 144 public blink::WebFrameClient {
145 public: 145 public:
146 WebViewHelper(WebViewPlugin* plugin, 146 WebViewHelper(WebViewPlugin* plugin,
147 const content::WebPreferences& preferences); 147 const content::WebPreferences& preferences);
148 ~WebViewHelper() override; 148 ~WebViewHelper() override;
149 149
150 blink::WebView* web_view() { return web_view_; } 150 blink::WebView* web_view() { return web_view_; }
151 151
152 // WebViewClient methods: 152 // WebViewClient methods:
153 bool acceptsLoadDrops() override; 153 bool acceptsLoadDrops() override;
154 bool canHandleGestureEvent() override;
155 bool canUpdateLayout() override;
154 156
155 // WebWidgetClient methods: 157 // WebWidgetClient methods:
156 void setToolTipText(const blink::WebString&, 158 void setToolTipText(const blink::WebString&,
157 blink::WebTextDirection) override; 159 blink::WebTextDirection) override;
158 void startDragging(blink::WebReferrerPolicy, 160 void startDragging(blink::WebReferrerPolicy,
159 const blink::WebDragData&, 161 const blink::WebDragData&,
160 blink::WebDragOperationsMask, 162 blink::WebDragOperationsMask,
161 const blink::WebImage&, 163 const blink::WebImage&,
162 const blink::WebPoint&) override; 164 const blink::WebPoint&) override;
163 // TODO(ojan): Remove this override and have this class use a non-null 165 // TODO(ojan): Remove this override and have this class use a non-null
(...skipping 12 matching lines...) Expand all
176 // Owned by us, deleted via |close()|. 178 // Owned by us, deleted via |close()|.
177 blink::WebView* web_view_; 179 blink::WebView* web_view_;
178 }; 180 };
179 WebViewHelper web_view_helper_; 181 WebViewHelper web_view_helper_;
180 182
181 // Should be invalidated when destroy() is called. 183 // Should be invalidated when destroy() is called.
182 base::WeakPtrFactory<WebViewPlugin> weak_factory_; 184 base::WeakPtrFactory<WebViewPlugin> weak_factory_;
183 }; 185 };
184 186
185 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ 187 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
OLDNEW
« no previous file with comments | « no previous file | components/plugins/renderer/webview_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698