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

Side by Side Diff: webkit/plugins/ppapi/ppb_flash_impl.cc

Issue 9960083: Add a Flash API to get the device ID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« ppapi/cpp/private/flash.cc ('K') | « ppapi/proxy/ppb_flash_proxy.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
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 }
raymes 2012/04/11 00:16:11 Should there be GetInterface12_2() here?
323 344
324 } // namespace ppapi 345 } // namespace ppapi
325 } // namespace webkit 346 } // namespace webkit
OLDNEW
« ppapi/cpp/private/flash.cc ('K') | « ppapi/proxy/ppb_flash_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698