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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_fullscreen.cc

Issue 8291002: PPAPI Fullscreen: move out of Dev. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "native_client/src/shared/ppapi_proxy/plugin_ppb_fullscreen.h" 5 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_fullscreen.h"
6 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" 6 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h"
7 #include "native_client/src/shared/ppapi_proxy/utility.h" 7 #include "native_client/src/shared/ppapi_proxy/utility.h"
8 #include "ppapi/c/dev/ppb_fullscreen_dev.h" 8 #include "ppapi/c/ppb_fullscreen.h"
dmichael (off chromium) 2011/10/14 15:20:55 nit: include order
polina 2011/10/14 19:15:04 Done.
9 #include "ppapi/c/pp_size.h" 9 #include "ppapi/c/pp_size.h"
10 #include "srpcgen/ppb_rpc.h" 10 #include "srpcgen/ppb_rpc.h"
11 11
12 namespace ppapi_proxy { 12 namespace ppapi_proxy {
13 13
14 namespace { 14 namespace {
15 15
16 PP_Bool IsFullscreen(PP_Instance instance) { 16 PP_Bool IsFullscreen(PP_Instance instance) {
17 DebugPrintf("PPB_Fullscreen::IsFullscreen: instance=%"NACL_PRIu32"\n", 17 DebugPrintf("PPB_Fullscreen::IsFullscreen: instance=%"NACL_PRIu32"\n",
18 instance); 18 instance);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 DebugPrintf("PPB_Fullscreen::GetScreenSize: %s\n", 69 DebugPrintf("PPB_Fullscreen::GetScreenSize: %s\n",
70 NaClSrpcErrorString(srpc_result)); 70 NaClSrpcErrorString(srpc_result));
71 71
72 if (srpc_result == NACL_SRPC_RESULT_OK && success) 72 if (srpc_result == NACL_SRPC_RESULT_OK && success)
73 return PP_TRUE; 73 return PP_TRUE;
74 return PP_FALSE; 74 return PP_FALSE;
75 } 75 }
76 76
77 } // namespace 77 } // namespace
78 78
79 const PPB_Fullscreen_Dev* PluginFullscreen::GetInterface() { 79 const PPB_Fullscreen* PluginFullscreen::GetInterface() {
80 static const PPB_Fullscreen_Dev fullscreen_interface = { 80 static const PPB_Fullscreen fullscreen_interface = {
81 IsFullscreen, 81 IsFullscreen,
82 SetFullscreen, 82 SetFullscreen,
83 GetScreenSize 83 GetScreenSize
84 }; 84 };
85 return &fullscreen_interface; 85 return &fullscreen_interface;
86 } 86 }
87 87
88 } // namespace ppapi_proxy 88 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698