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

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

Issue 2475443003: Drag-and-drop: Move startDrag out of WebView/RenderView. (Closed)
Patch Set: Removed unneeded declarations. Created 4 years, 1 month 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 void didReceiveData(const char* data, int data_length) override; 107 void didReceiveData(const char* data, int data_length) override;
108 void didFinishLoading() override; 108 void didFinishLoading() override;
109 void didFailLoading(const blink::WebURLError& error) override; 109 void didFailLoading(const blink::WebURLError& error) override;
110 110
111 // WebViewClient methods: 111 // WebViewClient methods:
112 bool acceptsLoadDrops() override; 112 bool acceptsLoadDrops() override;
113 113
114 void setToolTipText(const blink::WebString&, 114 void setToolTipText(const blink::WebString&,
115 blink::WebTextDirection) override; 115 blink::WebTextDirection) override;
116 116
117 void startDragging(blink::WebLocalFrame* frame, 117 void startDragging(blink::WebReferrerPolicy,
118 const blink::WebDragData& drag_data, 118 const blink::WebDragData&,
119 blink::WebDragOperationsMask mask, 119 blink::WebDragOperationsMask,
120 const blink::WebImage& image, 120 const blink::WebImage&,
121 const blink::WebPoint& point) override; 121 const blink::WebPoint&) override;
122 122
123 // TODO(ojan): Remove this override and have this class use a non-null 123 // TODO(ojan): Remove this override and have this class use a non-null
124 // layerTreeView. 124 // layerTreeView.
125 bool allowsBrokenNullLayerTreeView() const override; 125 bool allowsBrokenNullLayerTreeView() const override;
126 126
127 // WebWidgetClient methods: 127 // WebWidgetClient methods:
128 void didInvalidateRect(const blink::WebRect&) override; 128 void didInvalidateRect(const blink::WebRect&) override;
129 void didChangeCursor(const blink::WebCursorInfo& cursor) override; 129 void didChangeCursor(const blink::WebCursorInfo& cursor) override;
130 void scheduleAnimation() override; 130 void scheduleAnimation() override;
131 131
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 private: 171 private:
172 WebViewPlugin* plugin_; 172 WebViewPlugin* plugin_;
173 }; 173 };
174 PluginWebFrameClient web_frame_client_; 174 PluginWebFrameClient web_frame_client_;
175 175
176 // Should be invalidated when destroy() is called. 176 // Should be invalidated when destroy() is called.
177 base::WeakPtrFactory<WebViewPlugin> weak_factory_; 177 base::WeakPtrFactory<WebViewPlugin> weak_factory_;
178 }; 178 };
179 179
180 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ 180 #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