| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "remoting/client/plugin/pepper_entrypoints.h" | 5 #include "remoting/client/plugin/pepper_entrypoints.h" |
| 6 | 6 |
| 7 #include "remoting/client/plugin/chromoting_plugin.h" | 7 #include "remoting/client/plugin/chromoting_plugin.h" |
| 8 #include "third_party/ppapi/c/pp_instance.h" | 8 #include "third_party/ppapi/c/pp_instance.h" |
| 9 #include "third_party/ppapi/c/pp_module.h" | 9 #include "third_party/ppapi/c/pp_module.h" |
| 10 #include "third_party/ppapi/c/ppp_instance.h" | 10 #include "third_party/ppapi/c/ppp_instance.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 return false; | 167 return false; |
| 168 ChromotingPlugin* instance = | 168 ChromotingPlugin* instance = |
| 169 module_singleton_->InstanceForPPInstance(pp_instance); | 169 module_singleton_->InstanceForPPInstance(pp_instance); |
| 170 if (!instance) | 170 if (!instance) |
| 171 return false; | 171 return false; |
| 172 return instance->HandleEvent(*event); | 172 return instance->HandleEvent(*event); |
| 173 } | 173 } |
| 174 | 174 |
| 175 static PP_Var Instance_GetInstanceObject(PP_Instance pp_instance) { | 175 static PP_Var Instance_GetInstanceObject(PP_Instance pp_instance) { |
| 176 PP_Var var; | 176 PP_Var var; |
| 177 var.type = PP_VarType_Void; | 177 var.type = PP_VARTYPE_VOID; |
| 178 return var; | 178 return var; |
| 179 } | 179 } |
| 180 | 180 |
| 181 static void Instance_ViewChanged(PP_Instance pp_instance, | 181 static void Instance_ViewChanged(PP_Instance pp_instance, |
| 182 const PP_Rect* position, | 182 const PP_Rect* position, |
| 183 const PP_Rect* clip) { | 183 const PP_Rect* clip) { |
| 184 if (!module_singleton_) | 184 if (!module_singleton_) |
| 185 return; | 185 return; |
| 186 ChromotingPlugin* instance = | 186 ChromotingPlugin* instance = |
| 187 module_singleton_->InstanceForPPInstance(pp_instance); | 187 module_singleton_->InstanceForPPInstance(pp_instance); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 230 |
| 231 void PPP_ShutdownModule() { | 231 void PPP_ShutdownModule() { |
| 232 return ChromotingModule::PPP_ShutdownModule(); | 232 return ChromotingModule::PPP_ShutdownModule(); |
| 233 } | 233 } |
| 234 | 234 |
| 235 const void* PPP_GetInterface(const char* interface_name) { | 235 const void* PPP_GetInterface(const char* interface_name) { |
| 236 return ChromotingModule::PPP_GetInterface(interface_name); | 236 return ChromotingModule::PPP_GetInterface(interface_name); |
| 237 } | 237 } |
| 238 | 238 |
| 239 } // namespace remoting | 239 } // namespace remoting |
| OLD | NEW |