| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 static const blink::WebString& CanCreateWithoutRendererMimeType(); | 56 static const blink::WebString& CanCreateWithoutRendererMimeType(); |
| 57 static const blink::WebString& PluginPersistsMimeType(); | 57 static const blink::WebString& PluginPersistsMimeType(); |
| 58 static bool IsSupportedMimeType(const blink::WebString& mime_type); | 58 static bool IsSupportedMimeType(const blink::WebString& mime_type); |
| 59 | 59 |
| 60 // WebPlugin methods: | 60 // WebPlugin methods: |
| 61 bool initialize(blink::WebPluginContainer* container) override; | 61 bool initialize(blink::WebPluginContainer* container) override; |
| 62 void destroy() override; | 62 void destroy() override; |
| 63 NPObject* scriptableObject() override; | 63 NPObject* scriptableObject() override; |
| 64 bool canProcessDrag() const override; | 64 bool canProcessDrag() const override; |
| 65 bool supportsKeyboardFocus() const override; | 65 bool supportsKeyboardFocus() const override; |
| 66 void layoutIfNeeded() override {} | 66 void updateAllLifecyclePhases() override {} |
| 67 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override {} | 67 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override {} |
| 68 void updateGeometry(const blink::WebRect& window_rect, | 68 void updateGeometry(const blink::WebRect& window_rect, |
| 69 const blink::WebRect& clip_rect, | 69 const blink::WebRect& clip_rect, |
| 70 const blink::WebRect& unobscured_rect, | 70 const blink::WebRect& unobscured_rect, |
| 71 const blink::WebVector<blink::WebRect>& cut_outs_rects, | 71 const blink::WebVector<blink::WebRect>& cut_outs_rects, |
| 72 bool is_visible) override; | 72 bool is_visible) override; |
| 73 void updateFocus(bool focus, blink::WebFocusType focus_type) override {} | 73 void updateFocus(bool focus, blink::WebFocusType focus_type) override {} |
| 74 void updateVisibility(bool visibility) override {} | 74 void updateVisibility(bool visibility) override {} |
| 75 bool acceptsInputEvents() override; | 75 bool acceptsInputEvents() override; |
| 76 blink::WebInputEventResult handleInputEvent( | 76 blink::WebInputEventResult handleInputEvent( |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 170 |
| 171 bool is_persistent_; | 171 bool is_persistent_; |
| 172 bool can_create_without_renderer_; | 172 bool can_create_without_renderer_; |
| 173 | 173 |
| 174 DISALLOW_COPY_AND_ASSIGN(TestPlugin); | 174 DISALLOW_COPY_AND_ASSIGN(TestPlugin); |
| 175 }; | 175 }; |
| 176 | 176 |
| 177 } // namespace test_runner | 177 } // namespace test_runner |
| 178 | 178 |
| 179 #endif // COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ | 179 #endif // COMPONENTS_TEST_RUNNER_TEST_PLUGIN_H_ |
| OLD | NEW |