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

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: Fix bad rebase. Created 4 years, 9 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 context_ = nullptr; 209 context_ = nullptr;
210 210
211 container_ = nullptr; 211 container_ = nullptr;
212 frame_ = nullptr; 212 frame_ = nullptr;
213 213
214 blink::Platform::current()->mainThread()->getWebTaskRunner()->postTask( 214 blink::Platform::current()->mainThread()->getWebTaskRunner()->postTask(
215 blink::WebTraceLocation(__FUNCTION__, __FILE__), 215 blink::WebTraceLocation(__FUNCTION__, __FILE__),
216 new DeferredDeleteTask(make_scoped_ptr(this))); 216 new DeferredDeleteTask(make_scoped_ptr(this)));
217 } 217 }
218 218
219 NPObject* TestPlugin::scriptableObject() {
220 return 0;
221 }
222
223 bool TestPlugin::canProcessDrag() const { 219 bool TestPlugin::canProcessDrag() const {
224 return can_process_drag_; 220 return can_process_drag_;
225 } 221 }
226 222
227 bool TestPlugin::supportsKeyboardFocus() const { 223 bool TestPlugin::supportsKeyboardFocus() const {
228 return supports_keyboard_focus_; 224 return supports_keyboard_focus_;
229 } 225 }
230 226
231 void TestPlugin::updateGeometry( 227 void TestPlugin::updateGeometry(
232 const blink::WebRect& window_rect, 228 const blink::WebRect& window_rect,
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 return kPluginPersistsMimeType; 719 return kPluginPersistsMimeType;
724 } 720 }
725 721
726 bool TestPlugin::IsSupportedMimeType(const blink::WebString& mime_type) { 722 bool TestPlugin::IsSupportedMimeType(const blink::WebString& mime_type) {
727 return mime_type == TestPlugin::MimeType() || 723 return mime_type == TestPlugin::MimeType() ||
728 mime_type == PluginPersistsMimeType() || 724 mime_type == PluginPersistsMimeType() ||
729 mime_type == CanCreateWithoutRendererMimeType(); 725 mime_type == CanCreateWithoutRendererMimeType();
730 } 726 }
731 727
732 } // namespace test_runner 728 } // namespace test_runner
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698