| 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 | 9 |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 layer_ = NULL; | 216 layer_ = NULL; |
| 217 DestroyScene(); | 217 DestroyScene(); |
| 218 | 218 |
| 219 gl_ = nullptr; | 219 gl_ = nullptr; |
| 220 context_provider_.reset(); | 220 context_provider_.reset(); |
| 221 | 221 |
| 222 container_ = nullptr; | 222 container_ = nullptr; |
| 223 frame_ = nullptr; | 223 frame_ = nullptr; |
| 224 | 224 |
| 225 blink::Platform::current()->mainThread()->getWebTaskRunner()->postTask( | 225 blink::Platform::current()->mainThread()->getWebTaskRunner()->postTask( |
| 226 BLINK_FROM_HERE, | 226 blink::WebTraceLocation(__FUNCTION__, __FILE__), |
| 227 new DeferredDeleteTask(base::WrapUnique(this))); | 227 new DeferredDeleteTask(base::WrapUnique(this))); |
| 228 } | 228 } |
| 229 | 229 |
| 230 blink::WebPluginContainer* TestPlugin::container() const { | 230 blink::WebPluginContainer* TestPlugin::container() const { |
| 231 return container_; | 231 return container_; |
| 232 } | 232 } |
| 233 | 233 |
| 234 bool TestPlugin::canProcessDrag() const { | 234 bool TestPlugin::canProcessDrag() const { |
| 235 return can_process_drag_; | 235 return can_process_drag_; |
| 236 } | 236 } |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 return kPluginPersistsMimeType; | 732 return kPluginPersistsMimeType; |
| 733 } | 733 } |
| 734 | 734 |
| 735 bool TestPlugin::IsSupportedMimeType(const blink::WebString& mime_type) { | 735 bool TestPlugin::IsSupportedMimeType(const blink::WebString& mime_type) { |
| 736 return mime_type == TestPlugin::MimeType() || | 736 return mime_type == TestPlugin::MimeType() || |
| 737 mime_type == PluginPersistsMimeType() || | 737 mime_type == PluginPersistsMimeType() || |
| 738 mime_type == CanCreateWithoutRendererMimeType(); | 738 mime_type == CanCreateWithoutRendererMimeType(); |
| 739 } | 739 } |
| 740 | 740 |
| 741 } // namespace test_runner | 741 } // namespace test_runner |
| OLD | NEW |