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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 const blink::WebVector<blink::WebRect>& cut_outs_rects, | 98 const blink::WebVector<blink::WebRect>& cut_outs_rects, |
99 bool is_visible) override; | 99 bool is_visible) override; |
100 | 100 |
101 void UpdateFocus(bool foucsed, blink::WebFocusType focus_type) override; | 101 void UpdateFocus(bool foucsed, blink::WebFocusType focus_type) override; |
102 void UpdateVisibility(bool) override {} | 102 void UpdateVisibility(bool) override {} |
103 | 103 |
104 blink::WebInputEventResult HandleInputEvent( | 104 blink::WebInputEventResult HandleInputEvent( |
105 const blink::WebInputEvent& event, | 105 const blink::WebCoalescedInputEvent& event, |
106 blink::WebCursorInfo& cursor_info) override; | 106 blink::WebCursorInfo& cursor_info) override; |
107 | 107 |
108 void DidReceiveResponse(const blink::WebURLResponse& response) override; | 108 void DidReceiveResponse(const blink::WebURLResponse& response) override; |
109 void DidReceiveData(const char* data, int data_length) override; | 109 void DidReceiveData(const char* data, int data_length) override; |
110 void DidFinishLoading() override; | 110 void DidFinishLoading() override; |
111 void DidFailLoading(const blink::WebURLError& error) override; | 111 void DidFailLoading(const blink::WebURLError& error) override; |
112 | 112 |
113 private: | 113 private: |
114 friend class base::DeleteHelper<WebViewPlugin>; | 114 friend class base::DeleteHelper<WebViewPlugin>; |
115 WebViewPlugin(content::RenderView* render_view, | 115 WebViewPlugin(content::RenderView* render_view, |
(...skipping 66 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 |