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

Side by Side Diff: ppapi/thunk/ppb_fullscreen_thunk.cc

Issue 1412323002: ppapi: Support up to 32 subsamples in PP_EncryptedBlockInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 // From ppb_fullscreen.idl modified Wed May 15 13:57:07 2013. 5 // From ppb_fullscreen.idl modified Fri Jun 13 10:40:42 2014.
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/ppb_fullscreen.h" 8 #include "ppapi/c/ppb_fullscreen.h"
9 #include "ppapi/shared_impl/tracked_callback.h" 9 #include "ppapi/shared_impl/tracked_callback.h"
10 #include "ppapi/thunk/enter.h" 10 #include "ppapi/thunk/enter.h"
11 #include "ppapi/thunk/ppapi_thunk_export.h" 11 #include "ppapi/thunk/ppapi_thunk_export.h"
12 12
13 namespace ppapi { 13 namespace ppapi {
14 namespace thunk { 14 namespace thunk {
15 15
(...skipping 16 matching lines...) Expand all
32 } 32 }
33 33
34 PP_Bool GetScreenSize(PP_Instance instance, struct PP_Size* size) { 34 PP_Bool GetScreenSize(PP_Instance instance, struct PP_Size* size) {
35 VLOG(4) << "PPB_Fullscreen::GetScreenSize()"; 35 VLOG(4) << "PPB_Fullscreen::GetScreenSize()";
36 EnterInstance enter(instance); 36 EnterInstance enter(instance);
37 if (enter.failed()) 37 if (enter.failed())
38 return PP_FALSE; 38 return PP_FALSE;
39 return enter.functions()->GetScreenSize(instance, size); 39 return enter.functions()->GetScreenSize(instance, size);
40 } 40 }
41 41
42 const PPB_Fullscreen_1_0 g_ppb_fullscreen_thunk_1_0 = {&IsFullscreen, 42 const PPB_Fullscreen_1_0 g_ppb_fullscreen_thunk_1_0 = {
43 &SetFullscreen, 43 &IsFullscreen, &SetFullscreen, &GetScreenSize};
44 &GetScreenSize};
45 44
46 } // namespace 45 } // namespace
47 46
48 PPAPI_THUNK_EXPORT const PPB_Fullscreen_1_0* GetPPB_Fullscreen_1_0_Thunk() { 47 PPAPI_THUNK_EXPORT const PPB_Fullscreen_1_0* GetPPB_Fullscreen_1_0_Thunk() {
49 return &g_ppb_fullscreen_thunk_1_0; 48 return &g_ppb_fullscreen_thunk_1_0;
50 } 49 }
51 50
52 } // namespace thunk 51 } // namespace thunk
53 } // namespace ppapi 52 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698