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

Side by Side Diff: content/renderer/pepper/resource_creation_impl.cc

Issue 848863002: PPAPI: implement GetSupportedPreviewSizes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo: int32->int32_t Created 5 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/pepper/resource_creation_impl.h" 5 #include "content/renderer/pepper/resource_creation_impl.h"
6 6
7 #include "content/common/content_switches_internal.h" 7 #include "content/common/content_switches_internal.h"
8 #include "content/renderer/pepper/ppb_audio_impl.h" 8 #include "content/renderer/pepper/ppb_audio_impl.h"
9 #include "content/renderer/pepper/ppb_broker_impl.h" 9 #include "content/renderer/pepper/ppb_broker_impl.h"
10 #include "content/renderer/pepper/ppb_buffer_impl.h" 10 #include "content/renderer/pepper/ppb_buffer_impl.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 PP_Resource ResourceCreationImpl::CreateHostResolver(PP_Instance instance) { 122 PP_Resource ResourceCreationImpl::CreateHostResolver(PP_Instance instance) {
123 return 0; // Not supported in-process. 123 return 0; // Not supported in-process.
124 } 124 }
125 125
126 PP_Resource ResourceCreationImpl::CreateHostResolverPrivate( 126 PP_Resource ResourceCreationImpl::CreateHostResolverPrivate(
127 PP_Instance instance) { 127 PP_Instance instance) {
128 return 0; // Not supported in-process. 128 return 0; // Not supported in-process.
129 } 129 }
130 130
131 PP_Resource ResourceCreationImpl::CreateImageCapturePrivate(
132 PP_Instance instance) {
133 return 0; // Not supported in-process.
134 }
135
131 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance, 136 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance,
132 PP_ImageDataFormat format, 137 PP_ImageDataFormat format,
133 const PP_Size* size, 138 const PP_Size* size,
134 PP_Bool init_to_zero) { 139 PP_Bool init_to_zero) {
135 #if defined(OS_WIN) 140 #if defined(OS_WIN)
136 // If Win32K lockdown mitigations are enabled for Windows 8 and beyond, 141 // If Win32K lockdown mitigations are enabled for Windows 8 and beyond,
137 // we use the SIMPLE image data type as the PLATFORM image data type 142 // we use the SIMPLE image data type as the PLATFORM image data type
138 // calls GDI functions to create DIB sections etc which fail in Win32K 143 // calls GDI functions to create DIB sections etc which fail in Win32K
139 // lockdown mode. 144 // lockdown mode.
140 // TODO(ananta) 145 // TODO(ananta)
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 wheel_ticks, 366 wheel_ticks,
362 scroll_by_page); 367 scroll_by_page);
363 } 368 }
364 369
365 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( 370 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate(
366 PP_Instance instance) { 371 PP_Instance instance) {
367 return 0; // Not supported in-process. 372 return 0; // Not supported in-process.
368 } 373 }
369 374
370 } // namespace content 375 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/resource_creation_impl.h ('k') | ppapi/api/private/ppb_camera_capabilities_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698