Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "webkit/plugins/ppapi/resource_creation_impl.h" | 5 #include "webkit/plugins/ppapi/resource_creation_impl.h" |
| 6 | 6 |
| 7 #include "ppapi/c/pp_size.h" | 7 #include "ppapi/c/pp_size.h" |
| 8 #include "ppapi/shared_impl/ppb_audio_config_shared.h" | 8 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
| 9 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 9 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
| 10 #include "ppapi/shared_impl/ppb_resource_array_shared.h" | 10 #include "ppapi/shared_impl/ppb_resource_array_shared.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 74 uint32_t size) { | 74 uint32_t size) { |
| 75 return PPB_Buffer_Impl::Create(instance, size); | 75 return PPB_Buffer_Impl::Create(instance, size); |
| 76 } | 76 } |
| 77 | 77 |
| 78 PP_Resource ResourceCreationImpl::CreateDirectoryReader( | 78 PP_Resource ResourceCreationImpl::CreateDirectoryReader( |
| 79 PP_Instance instance, | 79 PP_Instance instance, |
| 80 PP_Resource directory_ref) { | 80 PP_Resource directory_ref) { |
| 81 return 0; // Not supported in-process. | 81 return 0; // Not supported in-process. |
| 82 } | 82 } |
| 83 | 83 |
| 84 PP_Resource ResourceCreationImpl::CreateExtCrxFileSystemPrivate( | |
|
yzshen1
2013/05/06 17:34:57
You don't need this method.
victorhsieh
2013/05/06 18:32:02
Done.
| |
| 85 PP_Instance instance) { | |
| 86 NOTIMPLEMENTED(); // no need to support in-process | |
| 87 return 0; | |
| 88 } | |
| 89 | |
| 84 PP_Resource ResourceCreationImpl::CreateFileRef( | 90 PP_Resource ResourceCreationImpl::CreateFileRef( |
| 85 PP_Instance instance, | 91 PP_Instance instance, |
| 86 PP_Resource file_system, | 92 PP_Resource file_system, |
| 87 const char* path) { | 93 const char* path) { |
| 88 PPB_FileRef_Impl* res = PPB_FileRef_Impl::CreateInternal( | 94 PPB_FileRef_Impl* res = PPB_FileRef_Impl::CreateInternal( |
| 89 instance, file_system, path); | 95 instance, file_system, path); |
| 90 return res ? res->GetReference() : 0; | 96 return res ? res->GetReference() : 0; |
| 91 } | 97 } |
| 92 | 98 |
| 93 PP_Resource ResourceCreationImpl::CreateFlashDeviceID(PP_Instance instance) { | 99 PP_Resource ResourceCreationImpl::CreateFlashDeviceID(PP_Instance instance) { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 153 uint32_t segment_number, | 159 uint32_t segment_number, |
| 154 const uint32_t* segment_offsets, | 160 const uint32_t* segment_offsets, |
| 155 int32_t target_segment, | 161 int32_t target_segment, |
| 156 uint32_t selection_start, | 162 uint32_t selection_start, |
| 157 uint32_t selection_end) { | 163 uint32_t selection_end) { |
| 158 return PPB_InputEvent_Shared::CreateIMEInputEvent( | 164 return PPB_InputEvent_Shared::CreateIMEInputEvent( |
| 159 ::ppapi::OBJECT_IS_IMPL, instance, type, time_stamp, text, segment_number, | 165 ::ppapi::OBJECT_IS_IMPL, instance, type, time_stamp, text, segment_number, |
| 160 segment_offsets, target_segment, selection_start, selection_end); | 166 segment_offsets, target_segment, selection_start, selection_end); |
| 161 } | 167 } |
| 162 | 168 |
| 169 PP_Resource ResourceCreationImpl::CreateIsolatedFileSystem(PP_Instance instance, | |
| 170 const char* fsid) { | |
| 171 NOTIMPLEMENTED(); // no need to support in-process | |
| 172 return 0; | |
| 173 } | |
| 174 | |
| 163 PP_Resource ResourceCreationImpl::CreateKeyboardInputEvent( | 175 PP_Resource ResourceCreationImpl::CreateKeyboardInputEvent( |
| 164 PP_Instance instance, | 176 PP_Instance instance, |
| 165 PP_InputEvent_Type type, | 177 PP_InputEvent_Type type, |
| 166 PP_TimeTicks time_stamp, | 178 PP_TimeTicks time_stamp, |
| 167 uint32_t modifiers, | 179 uint32_t modifiers, |
| 168 uint32_t key_code, | 180 uint32_t key_code, |
| 169 struct PP_Var character_text) { | 181 struct PP_Var character_text) { |
| 170 return PPB_InputEvent_Shared::CreateKeyboardInputEvent( | 182 return PPB_InputEvent_Shared::CreateKeyboardInputEvent( |
| 171 ::ppapi::OBJECT_IS_IMPL, instance, type, time_stamp, modifiers, key_code, | 183 ::ppapi::OBJECT_IS_IMPL, instance, type, time_stamp, modifiers, key_code, |
| 172 character_text); | 184 character_text); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 261 wheel_delta, wheel_ticks, scroll_by_page); | 273 wheel_delta, wheel_ticks, scroll_by_page); |
| 262 } | 274 } |
| 263 | 275 |
| 264 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 276 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
| 265 PP_Instance instance) { | 277 PP_Instance instance) { |
| 266 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 278 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
| 267 } | 279 } |
| 268 | 280 |
| 269 } // namespace ppapi | 281 } // namespace ppapi |
| 270 } // namespace webkit | 282 } // namespace webkit |
| OLD | NEW |