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

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, 11 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
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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698