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 #include "components/test_runner/test_plugin.h" | 5 #include "components/test_runner/test_plugin.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 context_provider_.reset(); | 212 context_provider_.reset(); |
213 | 213 |
214 container_ = nullptr; | 214 container_ = nullptr; |
215 frame_ = nullptr; | 215 frame_ = nullptr; |
216 | 216 |
217 blink::Platform::current()->mainThread()->getWebTaskRunner()->postTask( | 217 blink::Platform::current()->mainThread()->getWebTaskRunner()->postTask( |
218 blink::WebTraceLocation(__FUNCTION__, __FILE__), | 218 blink::WebTraceLocation(__FUNCTION__, __FILE__), |
219 new DeferredDeleteTask(make_scoped_ptr(this))); | 219 new DeferredDeleteTask(make_scoped_ptr(this))); |
220 } | 220 } |
221 | 221 |
222 NPObject* TestPlugin::scriptableObject() { | |
223 return 0; | |
224 } | |
225 | |
226 bool TestPlugin::canProcessDrag() const { | 222 bool TestPlugin::canProcessDrag() const { |
227 return can_process_drag_; | 223 return can_process_drag_; |
228 } | 224 } |
229 | 225 |
230 bool TestPlugin::supportsKeyboardFocus() const { | 226 bool TestPlugin::supportsKeyboardFocus() const { |
231 return supports_keyboard_focus_; | 227 return supports_keyboard_focus_; |
232 } | 228 } |
233 | 229 |
234 void TestPlugin::updateGeometry( | 230 void TestPlugin::updateGeometry( |
235 const blink::WebRect& window_rect, | 231 const blink::WebRect& window_rect, |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 return kPluginPersistsMimeType; | 724 return kPluginPersistsMimeType; |
729 } | 725 } |
730 | 726 |
731 bool TestPlugin::IsSupportedMimeType(const blink::WebString& mime_type) { | 727 bool TestPlugin::IsSupportedMimeType(const blink::WebString& mime_type) { |
732 return mime_type == TestPlugin::MimeType() || | 728 return mime_type == TestPlugin::MimeType() || |
733 mime_type == PluginPersistsMimeType() || | 729 mime_type == PluginPersistsMimeType() || |
734 mime_type == CanCreateWithoutRendererMimeType(); | 730 mime_type == CanCreateWithoutRendererMimeType(); |
735 } | 731 } |
736 | 732 |
737 } // namespace test_runner | 733 } // namespace test_runner |
OLD | NEW |