| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 void updateGeometry(const blink::WebRect& window_rect, | 93 void updateGeometry(const blink::WebRect& window_rect, |
| 94 const blink::WebRect& clip_rect, | 94 const blink::WebRect& clip_rect, |
| 95 const blink::WebRect& unobscured_rect, | 95 const blink::WebRect& unobscured_rect, |
| 96 const blink::WebVector<blink::WebRect>& cut_outs_rects, | 96 const blink::WebVector<blink::WebRect>& cut_outs_rects, |
| 97 bool is_visible) override; | 97 bool is_visible) override; |
| 98 | 98 |
| 99 void updateFocus(bool foucsed, blink::WebFocusType focus_type) override; | 99 void updateFocus(bool foucsed, blink::WebFocusType focus_type) override; |
| 100 void updateVisibility(bool) override {} | 100 void updateVisibility(bool) override {} |
| 101 | 101 |
| 102 blink::WebInputEventResult handleInputEvent( | 102 blink::WebInputEventResult handleInputEvent( |
| 103 const blink::WebInputEvent& event, | 103 const blink::CoalescedWebInputEvent& event, |
| 104 blink::WebCursorInfo& cursor_info) override; | 104 blink::WebCursorInfo& cursor_info) override; |
| 105 | 105 |
| 106 void didReceiveResponse(const blink::WebURLResponse& response) override; | 106 void didReceiveResponse(const blink::WebURLResponse& response) override; |
| 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 |
| (...skipping 57 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 |