| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |