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 "base/logging.h" | 5 #include "base/logging.h" |
6 #include "ppapi/c/pp_array_output.h" | 6 #include "ppapi/c/pp_array_output.h" |
7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
8 #include "ppapi/c/private/ppb_flash.h" | 8 #include "ppapi/c/private/ppb_flash.h" |
9 #include "ppapi/shared_impl/ppapi_globals.h" | 9 #include "ppapi/shared_impl/ppapi_globals.h" |
10 #include "ppapi/shared_impl/proxy_lock.h" | 10 #include "ppapi/shared_impl/proxy_lock.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 return; | 80 return; |
81 } | 81 } |
82 | 82 |
83 void QuitMessageLoop(PP_Instance instance) { | 83 void QuitMessageLoop(PP_Instance instance) { |
84 // Deprecated. | 84 // Deprecated. |
85 NOTREACHED(); | 85 NOTREACHED(); |
86 return; | 86 return; |
87 } | 87 } |
88 | 88 |
89 double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) { | 89 double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) { |
90 EnterInstance enter(instance); | 90 EnterInstanceAPI<PPB_Flash_Functions_API> enter(instance); |
91 if (enter.failed()) | 91 if (enter.failed()) |
92 return 0.0; | 92 return 0.0; |
93 return enter.functions()->GetFlashAPI()->GetLocalTimeZoneOffset(instance, t); | 93 return enter.functions()->GetLocalTimeZoneOffset(instance, t); |
94 } | 94 } |
95 | 95 |
96 PP_Var GetCommandLineArgs(PP_Module /* pp_module */) { | 96 PP_Var GetCommandLineArgs(PP_Module /* pp_module */) { |
97 // There's no instance so we have to reach into the globals without thunking. | 97 // There's no instance so we have to reach into the globals without thunking. |
98 ProxyAutoLock lock; | 98 ProxyAutoLock lock; |
99 return StringVar::StringToPPVar(PpapiGlobals::Get()->GetCmdLine()); | 99 return StringVar::StringToPPVar(PpapiGlobals::Get()->GetCmdLine()); |
100 } | 100 } |
101 | 101 |
102 void PreLoadFontWin(const void* logfontw) { | 102 void PreLoadFontWin(const void* logfontw) { |
103 // There's no instance so we have to reach into the delegate without | 103 // There's no instance so we have to reach into the delegate without |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 const PPB_Flash_12_6* GetPPB_Flash_12_6_Thunk() { | 247 const PPB_Flash_12_6* GetPPB_Flash_12_6_Thunk() { |
248 return &g_ppb_flash_12_6_thunk; | 248 return &g_ppb_flash_12_6_thunk; |
249 } | 249 } |
250 | 250 |
251 const PPB_Flash_13_0* GetPPB_Flash_13_0_Thunk() { | 251 const PPB_Flash_13_0* GetPPB_Flash_13_0_Thunk() { |
252 return &g_ppb_flash_13_0_thunk; | 252 return &g_ppb_flash_13_0_thunk; |
253 } | 253 } |
254 | 254 |
255 } // namespace thunk | 255 } // namespace thunk |
256 } // namespace ppapi | 256 } // namespace ppapi |
OLD | NEW |