| 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 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::WebInputEvent& event, |
| 104 const std::vector<const blink::WebInputEvent*>&, |
| 104 blink::WebCursorInfo& cursor_info) override; | 105 blink::WebCursorInfo& cursor_info) override; |
| 105 | 106 |
| 106 void didReceiveResponse(const blink::WebURLResponse& response) override; | 107 void didReceiveResponse(const blink::WebURLResponse& response) override; |
| 107 void didReceiveData(const char* data, int data_length) override; | 108 void didReceiveData(const char* data, int data_length) override; |
| 108 void didFinishLoading() override; | 109 void didFinishLoading() override; |
| 109 void didFailLoading(const blink::WebURLError& error) override; | 110 void didFailLoading(const blink::WebURLError& error) override; |
| 110 | 111 |
| 111 // WebViewClient methods: | 112 // WebViewClient methods: |
| 112 bool acceptsLoadDrops() override; | 113 bool acceptsLoadDrops() override; |
| 113 | 114 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 private: | 172 private: |
| 172 WebViewPlugin* plugin_; | 173 WebViewPlugin* plugin_; |
| 173 }; | 174 }; |
| 174 PluginWebFrameClient web_frame_client_; | 175 PluginWebFrameClient web_frame_client_; |
| 175 | 176 |
| 176 // Should be invalidated when destroy() is called. | 177 // Should be invalidated when destroy() is called. |
| 177 base::WeakPtrFactory<WebViewPlugin> weak_factory_; | 178 base::WeakPtrFactory<WebViewPlugin> weak_factory_; |
| 178 }; | 179 }; |
| 179 | 180 |
| 180 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ | 181 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ |
| OLD | NEW |