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

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: Fix missing logic 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();
857 rv = NPERR_NO_ERROR;
858 break;
859 }
853 case NPNVsupportsUpdatedCocoaTextInputBool: { 860 case NPNVsupportsUpdatedCocoaTextInputBool: {
854 // We support the clarifications to the Cocoa IME event spec, but since 861 // We support the clarifications to the Cocoa IME event spec, but since
855 // IME currently only works on 10.6, only answer true there. 862 // IME currently only works on 10.6, only answer true there.
856 NPBool* supports_update = reinterpret_cast<NPBool*>(value); 863 NPBool* supports_update = reinterpret_cast<NPBool*>(value);
857 *supports_update = base::mac::IsOSSnowLeopardOrLater(); 864 *supports_update = base::mac::IsOSSnowLeopardOrLater();
858 rv = NPERR_NO_ERROR; 865 rv = NPERR_NO_ERROR;
859 break; 866 break;
860 } 867 }
861 #endif // OS_MACOSX 868 #endif // OS_MACOSX
862 default: 869 default:
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 } 1152 }
1146 1153
1147 void NPN_URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) { 1154 void NPN_URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) {
1148 scoped_refptr<PluginInstance> plugin(FindInstance(instance)); 1155 scoped_refptr<PluginInstance> plugin(FindInstance(instance));
1149 if (plugin.get()) { 1156 if (plugin.get()) {
1150 plugin->URLRedirectResponse(!!allow, notify_data); 1157 plugin->URLRedirectResponse(!!allow, notify_data);
1151 } 1158 }
1152 } 1159 }
1153 1160
1154 } // extern "C" 1161 } // 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