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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 context_ = 0; | 236 context_ = 0; |
237 | 237 |
238 container_ = 0; | 238 container_ = 0; |
239 frame_ = 0; | 239 frame_ = 0; |
240 | 240 |
241 blink::Platform::current()->mainThread()->taskRunner()->postTask( | 241 blink::Platform::current()->mainThread()->taskRunner()->postTask( |
242 blink::WebTraceLocation(__FUNCTION__, __FILE__), | 242 blink::WebTraceLocation(__FUNCTION__, __FILE__), |
243 new DeferredDeleteTask(make_scoped_ptr(this))); | 243 new DeferredDeleteTask(make_scoped_ptr(this))); |
244 } | 244 } |
245 | 245 |
246 NPObject* TestPlugin::scriptableObject() { | |
247 return 0; | |
248 } | |
249 | |
250 bool TestPlugin::canProcessDrag() const { | 246 bool TestPlugin::canProcessDrag() const { |
251 return can_process_drag_; | 247 return can_process_drag_; |
252 } | 248 } |
253 | 249 |
254 bool TestPlugin::supportsKeyboardFocus() const { | 250 bool TestPlugin::supportsKeyboardFocus() const { |
255 return supports_keyboard_focus_; | 251 return supports_keyboard_focus_; |
256 } | 252 } |
257 | 253 |
258 void TestPlugin::updateGeometry( | 254 void TestPlugin::updateGeometry( |
259 const blink::WebRect& window_rect, | 255 const blink::WebRect& window_rect, |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 return kPluginPersistsMimeType; | 753 return kPluginPersistsMimeType; |
758 } | 754 } |
759 | 755 |
760 bool TestPlugin::IsSupportedMimeType(const blink::WebString& mime_type) { | 756 bool TestPlugin::IsSupportedMimeType(const blink::WebString& mime_type) { |
761 return mime_type == TestPlugin::MimeType() || | 757 return mime_type == TestPlugin::MimeType() || |
762 mime_type == PluginPersistsMimeType() || | 758 mime_type == PluginPersistsMimeType() || |
763 mime_type == CanCreateWithoutRendererMimeType(); | 759 mime_type == CanCreateWithoutRendererMimeType(); |
764 } | 760 } |
765 | 761 |
766 } // namespace test_runner | 762 } // namespace test_runner |
OLD | NEW |