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

Side by Side Diff: webkit/plugins/npapi/plugin_host.cc

Issue 8805004: Implement NPNVsupportsCompositingCoreAnimationPluginsBool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « third_party/npapi/bindings/nptypes.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "webkit/plugins/npapi/plugin_host.h" 5 #include "webkit/plugins/npapi/plugin_host.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 break; 843 break;
844 } 844 }
845 case NPNVsupportsOpenGLBool: { 845 case NPNVsupportsOpenGLBool: {
846 // This drawing model was never widely supported, and we don't plan to 846 // This drawing model was never widely supported, and we don't plan to
847 // support it. 847 // support it.
848 NPBool* supports_model = reinterpret_cast<NPBool*>(value); 848 NPBool* supports_model = reinterpret_cast<NPBool*>(value);
849 *supports_model = false; 849 *supports_model = false;
850 rv = NPERR_NO_ERROR; 850 rv = NPERR_NO_ERROR;
851 break; 851 break;
852 } 852 }
853 case NPNVsupportsCompositingCoreAnimationPluginsBool: {
854 NPBool* supports_compositing = reinterpret_cast<NPBool*>(value);
855 *supports_compositing =
856 webkit::npapi::UsingCompositedCoreAnimationPlugins();
Ken Russell (switch to Gerrit) 2011/12/05 20:22:43 Missing 'break'
Ken Russell (switch to Gerrit) 2011/12/05 20:23:33 ...and assignment to 'rv'
857 }
853 case NPNVsupportsUpdatedCocoaTextInputBool: { 858 case NPNVsupportsUpdatedCocoaTextInputBool: {
854 // We support the clarifications to the Cocoa IME event spec, but since 859 // We support the clarifications to the Cocoa IME event spec, but since
855 // IME currently only works on 10.6, only answer true there. 860 // IME currently only works on 10.6, only answer true there.
856 NPBool* supports_update = reinterpret_cast<NPBool*>(value); 861 NPBool* supports_update = reinterpret_cast<NPBool*>(value);
857 *supports_update = base::mac::IsOSSnowLeopardOrLater(); 862 *supports_update = base::mac::IsOSSnowLeopardOrLater();
858 rv = NPERR_NO_ERROR; 863 rv = NPERR_NO_ERROR;
859 break; 864 break;
860 } 865 }
861 #endif // OS_MACOSX 866 #endif // OS_MACOSX
862 default: 867 default:
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 } 1150 }
1146 1151
1147 void NPN_URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) { 1152 void NPN_URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) {
1148 scoped_refptr<PluginInstance> plugin(FindInstance(instance)); 1153 scoped_refptr<PluginInstance> plugin(FindInstance(instance));
1149 if (plugin.get()) { 1154 if (plugin.get()) {
1150 plugin->URLRedirectResponse(!!allow, notify_data); 1155 plugin->URLRedirectResponse(!!allow, notify_data);
1151 } 1156 }
1152 } 1157 }
1153 1158
1154 } // extern "C" 1159 } // extern "C"
OLDNEW
« no previous file with comments | « third_party/npapi/bindings/nptypes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698