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/ppb_flash_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_flash_impl.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 | 259 |
260 // TODO(viettrungluu): Implement me. | 260 // TODO(viettrungluu): Implement me. |
261 | 261 |
262 return PP_ERROR_NOTSUPPORTED; | 262 return PP_ERROR_NOTSUPPORTED; |
263 } | 263 } |
264 | 264 |
265 void UpdateActivity(PP_Instance pp_instance) { | 265 void UpdateActivity(PP_Instance pp_instance) { |
266 // TODO(viettrungluu): Implement me. | 266 // TODO(viettrungluu): Implement me. |
267 } | 267 } |
268 | 268 |
| 269 PP_Var GetDeviceID(PP_Instance pp_instance) { |
| 270 // TODO(brettw) implement me. |
| 271 return PP_MakeUndefined(); |
| 272 } |
| 273 |
269 const PPB_Flash_11 ppb_flash_11 = { | 274 const PPB_Flash_11 ppb_flash_11 = { |
270 &SetInstanceAlwaysOnTop, | 275 &SetInstanceAlwaysOnTop, |
271 &DrawGlyphs11, | 276 &DrawGlyphs11, |
272 &GetProxyForURL, | 277 &GetProxyForURL, |
273 &Navigate11, | 278 &Navigate11, |
274 &RunMessageLoop, | 279 &RunMessageLoop, |
275 &QuitMessageLoop, | 280 &QuitMessageLoop, |
276 &GetLocalTimeZoneOffset, | 281 &GetLocalTimeZoneOffset, |
277 &GetCommandLineArgs | 282 &GetCommandLineArgs |
278 }; | 283 }; |
(...skipping 18 matching lines...) Expand all Loading... |
297 &RunMessageLoop, | 302 &RunMessageLoop, |
298 &QuitMessageLoop, | 303 &QuitMessageLoop, |
299 &GetLocalTimeZoneOffset, | 304 &GetLocalTimeZoneOffset, |
300 &GetCommandLineArgs, | 305 &GetCommandLineArgs, |
301 &PreLoadFontWin, | 306 &PreLoadFontWin, |
302 &IsRectTopmost, | 307 &IsRectTopmost, |
303 &InvokePrinting, | 308 &InvokePrinting, |
304 &UpdateActivity | 309 &UpdateActivity |
305 }; | 310 }; |
306 | 311 |
| 312 const PPB_Flash_12_2 ppb_flash_12_2 = { |
| 313 &SetInstanceAlwaysOnTop, |
| 314 &DrawGlyphs, |
| 315 &GetProxyForURL, |
| 316 &Navigate, |
| 317 &RunMessageLoop, |
| 318 &QuitMessageLoop, |
| 319 &GetLocalTimeZoneOffset, |
| 320 &GetCommandLineArgs, |
| 321 &PreLoadFontWin, |
| 322 &IsRectTopmost, |
| 323 &InvokePrinting, |
| 324 &UpdateActivity, |
| 325 &GetDeviceID |
| 326 }; |
| 327 |
307 } // namespace | 328 } // namespace |
308 | 329 |
309 // static | 330 // static |
310 const PPB_Flash_11* PPB_Flash_Impl::GetInterface11() { | 331 const PPB_Flash_11* PPB_Flash_Impl::GetInterface11() { |
311 return &ppb_flash_11; | 332 return &ppb_flash_11; |
312 } | 333 } |
313 | 334 |
314 // static | 335 // static |
315 const PPB_Flash_12_0* PPB_Flash_Impl::GetInterface12_0() { | 336 const PPB_Flash_12_0* PPB_Flash_Impl::GetInterface12_0() { |
316 return &ppb_flash_12_0; | 337 return &ppb_flash_12_0; |
317 } | 338 } |
318 | 339 |
319 // static | 340 // static |
320 const PPB_Flash_12_1* PPB_Flash_Impl::GetInterface12_1() { | 341 const PPB_Flash_12_1* PPB_Flash_Impl::GetInterface12_1() { |
321 return &ppb_flash_12_1; | 342 return &ppb_flash_12_1; |
322 } | 343 } |
323 | 344 |
| 345 // static |
| 346 const PPB_Flash_12_2* PPB_Flash_Impl::GetInterface12_2() { |
| 347 return &ppb_flash_12_2; |
| 348 } |
| 349 |
324 } // namespace ppapi | 350 } // namespace ppapi |
325 } // namespace webkit | 351 } // namespace webkit |
OLD | NEW |