Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: components/test_runner/test_plugin.cc

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/test_runner/test_plugin.h ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/test_runner/test_plugin.h ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698