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

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: Remove video_capture_types.* Created 5 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 (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/renderer/pepper/ppb_audio_impl.h" 7 #include "content/renderer/pepper/ppb_audio_impl.h"
8 #include "content/renderer/pepper/ppb_broker_impl.h" 8 #include "content/renderer/pepper/ppb_broker_impl.h"
9 #include "content/renderer/pepper/ppb_buffer_impl.h" 9 #include "content/renderer/pepper/ppb_buffer_impl.h"
10 #include "content/renderer/pepper/ppb_flash_message_loop_impl.h" 10 #include "content/renderer/pepper/ppb_flash_message_loop_impl.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 PP_Resource ResourceCreationImpl::CreateBroker(PP_Instance instance) { 76 PP_Resource ResourceCreationImpl::CreateBroker(PP_Instance instance) {
77 return (new PPB_Broker_Impl(instance))->GetReference(); 77 return (new PPB_Broker_Impl(instance))->GetReference();
78 } 78 }
79 79
80 PP_Resource ResourceCreationImpl::CreateBuffer(PP_Instance instance, 80 PP_Resource ResourceCreationImpl::CreateBuffer(PP_Instance instance,
81 uint32_t size) { 81 uint32_t size) {
82 return PPB_Buffer_Impl::Create(instance, size); 82 return PPB_Buffer_Impl::Create(instance, size);
83 } 83 }
84 84
85 PP_Resource ResourceCreationImpl::CreateCameraCapabilitiesPrivate(
86 PP_Instance instance) {
87 return 0; // Not supported in-process.
88 }
89
85 PP_Resource ResourceCreationImpl::CreateFlashDRM(PP_Instance instance) { 90 PP_Resource ResourceCreationImpl::CreateFlashDRM(PP_Instance instance) {
86 return 0; // Not supported in-process. 91 return 0; // Not supported in-process.
87 } 92 }
88 93
89 PP_Resource ResourceCreationImpl::CreateFlashFontFile( 94 PP_Resource ResourceCreationImpl::CreateFlashFontFile(
90 PP_Instance instance, 95 PP_Instance instance,
91 const PP_BrowserFont_Trusted_Description* description, 96 const PP_BrowserFont_Trusted_Description* description,
92 PP_PrivateFontCharset charset) { 97 PP_PrivateFontCharset charset) {
93 return 0; // Not supported in-process. 98 return 0; // Not supported in-process.
94 } 99 }
(...skipping 26 matching lines...) Expand all
121 126
122 PP_Resource ResourceCreationImpl::CreateHostResolver(PP_Instance instance) { 127 PP_Resource ResourceCreationImpl::CreateHostResolver(PP_Instance instance) {
123 return 0; // Not supported in-process. 128 return 0; // Not supported in-process.
124 } 129 }
125 130
126 PP_Resource ResourceCreationImpl::CreateHostResolverPrivate( 131 PP_Resource ResourceCreationImpl::CreateHostResolverPrivate(
127 PP_Instance instance) { 132 PP_Instance instance) {
128 return 0; // Not supported in-process. 133 return 0; // Not supported in-process.
129 } 134 }
130 135
136 PP_Resource ResourceCreationImpl::CreateImageCaptureConfigPrivate(
137 PP_Instance instance) {
138 return 0; // Not supported in-process.
139 }
140
141 PP_Resource ResourceCreationImpl::CreateImageCapturePrivate(
142 PP_Instance instance) {
143 return 0; // Not supported in-process.
144 }
145
131 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance, 146 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance,
132 PP_ImageDataFormat format, 147 PP_ImageDataFormat format,
133 const PP_Size* size, 148 const PP_Size* size,
134 PP_Bool init_to_zero) { 149 PP_Bool init_to_zero) {
135 #if defined(OS_WIN) 150 #if defined(OS_WIN)
136 // If Win32K lockdown mitigations are enabled for Windows 8 and beyond, 151 // 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 152 // 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 153 // calls GDI functions to create DIB sections etc which fail in Win32K
139 // lockdown mode. 154 // lockdown mode.
140 // TODO(ananta) 155 // TODO(ananta)
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 wheel_ticks, 374 wheel_ticks,
360 scroll_by_page); 375 scroll_by_page);
361 } 376 }
362 377
363 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( 378 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate(
364 PP_Instance instance) { 379 PP_Instance instance) {
365 return 0; // Not supported in-process. 380 return 0; // Not supported in-process.
366 } 381 }
367 382
368 } // namespace content 383 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698