| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // Coordinates are relative to the containing window. | 94 // Coordinates are relative to the containing window. |
| 95 void UpdateGeometry(const blink::WebRect& window_rect, | 95 void UpdateGeometry(const blink::WebRect& window_rect, |
| 96 const blink::WebRect& clip_rect, | 96 const blink::WebRect& clip_rect, |
| 97 const blink::WebRect& unobscured_rect, | 97 const blink::WebRect& unobscured_rect, |
| 98 bool is_visible) override; | 98 bool is_visible) override; |
| 99 | 99 |
| 100 void UpdateFocus(bool foucsed, blink::WebFocusType focus_type) override; | 100 void UpdateFocus(bool foucsed, blink::WebFocusType focus_type) override; |
| 101 void UpdateVisibility(bool) override {} | 101 void UpdateVisibility(bool) override {} |
| 102 | 102 |
| 103 blink::WebInputEventResult HandleInputEvent( | 103 blink::WebInputEventResult HandleInputEvent( |
| 104 const blink::WebInputEvent& event, | 104 const blink::WebCoalescedInputEvent& event, |
| 105 blink::WebCursorInfo& cursor_info) override; | 105 blink::WebCursorInfo& cursor_info) override; |
| 106 | 106 |
| 107 void DidReceiveResponse(const blink::WebURLResponse& response) override; | 107 void DidReceiveResponse(const blink::WebURLResponse& response) override; |
| 108 void DidReceiveData(const char* data, int data_length) override; | 108 void DidReceiveData(const char* data, int data_length) override; |
| 109 void DidFinishLoading() override; | 109 void DidFinishLoading() override; |
| 110 void DidFailLoading(const blink::WebURLError& error) override; | 110 void DidFailLoading(const blink::WebURLError& error) override; |
| 111 | 111 |
| 112 private: | 112 private: |
| 113 friend class base::DeleteHelper<WebViewPlugin>; | 113 friend class base::DeleteHelper<WebViewPlugin>; |
| 114 WebViewPlugin(content::RenderView* render_view, | 114 WebViewPlugin(content::RenderView* render_view, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // Owned by us, deleted via |close()|. | 182 // Owned by us, deleted via |close()|. |
| 183 blink::WebView* web_view_; | 183 blink::WebView* web_view_; |
| 184 }; | 184 }; |
| 185 WebViewHelper web_view_helper_; | 185 WebViewHelper web_view_helper_; |
| 186 | 186 |
| 187 // Should be invalidated when destroy() is called. | 187 // Should be invalidated when destroy() is called. |
| 188 base::WeakPtrFactory<WebViewPlugin> weak_factory_; | 188 base::WeakPtrFactory<WebViewPlugin> weak_factory_; |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ | 191 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ |
| OLD | NEW |