| 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_TEST_RUNNER_TEST_PLUGIN_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ | 6 #define COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "cc/layers/texture_layer.h" | 12 #include "cc/layers/texture_layer.h" |
| 13 #include "cc/layers/texture_layer_client.h" | 13 #include "cc/layers/texture_layer_client.h" |
| 14 #include "third_party/WebKit/public/platform/WebLayer.h" | 14 #include "third_party/WebKit/public/platform/WebLayer.h" |
| 15 #include "third_party/WebKit/public/web/WebDocument.h" | 15 #include "third_party/WebKit/public/web/WebDocument.h" |
| 16 #include "third_party/WebKit/public/web/WebElement.h" | 16 #include "third_party/WebKit/public/web/WebElement.h" |
| 17 #include "third_party/WebKit/public/web/WebPlugin.h" | 17 #include "third_party/WebKit/public/web/WebPlugin.h" |
| 18 #include "third_party/WebKit/public/web/WebPluginContainer.h" | 18 #include "third_party/WebKit/public/web/WebPluginContainer.h" |
| 19 #include "third_party/khronos/GLES2/gl2.h" | 19 #include "third_party/khronos/GLES2/gl2.h" |
| 20 | 20 |
| 21 namespace blink { | 21 namespace blink { |
| 22 class CoalescedWebInputEvent; |
| 22 class WebFrame; | 23 class WebFrame; |
| 23 class WebGraphicsContext3DProvider; | 24 class WebGraphicsContext3DProvider; |
| 24 class WebLayer; | 25 class WebLayer; |
| 25 struct WebPluginParams; | 26 struct WebPluginParams; |
| 26 } | 27 } |
| 27 | 28 |
| 28 namespace cc { | 29 namespace cc { |
| 29 class SharedBitmap; | 30 class SharedBitmap; |
| 30 } | 31 } |
| 31 | 32 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 void updateAllLifecyclePhases() override {} | 73 void updateAllLifecyclePhases() override {} |
| 73 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override {} | 74 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override {} |
| 74 void updateGeometry(const blink::WebRect& window_rect, | 75 void updateGeometry(const blink::WebRect& window_rect, |
| 75 const blink::WebRect& clip_rect, | 76 const blink::WebRect& clip_rect, |
| 76 const blink::WebRect& unobscured_rect, | 77 const blink::WebRect& unobscured_rect, |
| 77 const blink::WebVector<blink::WebRect>& cut_outs_rects, | 78 const blink::WebVector<blink::WebRect>& cut_outs_rects, |
| 78 bool is_visible) override; | 79 bool is_visible) override; |
| 79 void updateFocus(bool focus, blink::WebFocusType focus_type) override {} | 80 void updateFocus(bool focus, blink::WebFocusType focus_type) override {} |
| 80 void updateVisibility(bool visibility) override {} | 81 void updateVisibility(bool visibility) override {} |
| 81 blink::WebInputEventResult handleInputEvent( | 82 blink::WebInputEventResult handleInputEvent( |
| 82 const blink::WebInputEvent& event, | 83 const blink::CoalescedWebInputEvent& event, |
| 83 blink::WebCursorInfo& info) override; | 84 blink::WebCursorInfo& info) override; |
| 84 bool handleDragStatusUpdate(blink::WebDragStatus drag_status, | 85 bool handleDragStatusUpdate(blink::WebDragStatus drag_status, |
| 85 const blink::WebDragData& data, | 86 const blink::WebDragData& data, |
| 86 blink::WebDragOperationsMask mask, | 87 blink::WebDragOperationsMask mask, |
| 87 const blink::WebPoint& position, | 88 const blink::WebPoint& position, |
| 88 const blink::WebPoint& screen_position) override; | 89 const blink::WebPoint& screen_position) override; |
| 89 void didReceiveResponse(const blink::WebURLResponse& response) override {} | 90 void didReceiveResponse(const blink::WebURLResponse& response) override {} |
| 90 void didReceiveData(const char* data, int data_length) override {} | 91 void didReceiveData(const char* data, int data_length) override {} |
| 91 void didFinishLoading() override {} | 92 void didFinishLoading() override {} |
| 92 void didFailLoading(const blink::WebURLError& error) override {} | 93 void didFailLoading(const blink::WebURLError& error) override {} |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 176 |
| 176 bool is_persistent_; | 177 bool is_persistent_; |
| 177 bool can_create_without_renderer_; | 178 bool can_create_without_renderer_; |
| 178 | 179 |
| 179 DISALLOW_COPY_AND_ASSIGN(TestPlugin); | 180 DISALLOW_COPY_AND_ASSIGN(TestPlugin); |
| 180 }; | 181 }; |
| 181 | 182 |
| 182 } // namespace test_runner | 183 } // namespace test_runner |
| 183 | 184 |
| 184 #endif // COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ | 185 #endif // COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ |
| OLD | NEW |