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