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

Side by Side Diff: ppapi/thunk/ppb_view_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_view.idl modified Wed Nov 5 14:29:15 2014. 5 // From ppb_view.idl modified Tue Sep 9 21:10:32 2014.
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/ppb_view.h" 8 #include "ppapi/c/ppb_view.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 #include "ppapi/thunk/ppb_view_api.h" 12 #include "ppapi/thunk/ppb_view_api.h"
13 13
14 namespace ppapi { 14 namespace ppapi {
15 namespace thunk { 15 namespace thunk {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 79 }
80 80
81 PP_Bool GetScrollOffset(PP_Resource resource, struct PP_Point* offset) { 81 PP_Bool GetScrollOffset(PP_Resource resource, struct PP_Point* offset) {
82 VLOG(4) << "PPB_View::GetScrollOffset()"; 82 VLOG(4) << "PPB_View::GetScrollOffset()";
83 EnterResource<PPB_View_API> enter(resource, true); 83 EnterResource<PPB_View_API> enter(resource, true);
84 if (enter.failed()) 84 if (enter.failed())
85 return PP_FALSE; 85 return PP_FALSE;
86 return enter.object()->GetScrollOffset(offset); 86 return enter.object()->GetScrollOffset(offset);
87 } 87 }
88 88
89 const PPB_View_1_0 g_ppb_view_thunk_1_0 = {&IsView, 89 const PPB_View_1_0 g_ppb_view_thunk_1_0 = {
90 &GetRect, 90 &IsView, &GetRect, &IsFullscreen, &IsVisible, &IsPageVisible, &GetClipRect};
91 &IsFullscreen,
92 &IsVisible,
93 &IsPageVisible,
94 &GetClipRect};
95 91
96 const PPB_View_1_1 g_ppb_view_thunk_1_1 = {&IsView, 92 const PPB_View_1_1 g_ppb_view_thunk_1_1 = {
97 &GetRect, 93 &IsView, &GetRect, &IsFullscreen, &IsVisible,
98 &IsFullscreen, 94 &IsPageVisible, &GetClipRect, &GetDeviceScale, &GetCSSScale};
99 &IsVisible,
100 &IsPageVisible,
101 &GetClipRect,
102 &GetDeviceScale,
103 &GetCSSScale};
104 95
105 const PPB_View_1_2 g_ppb_view_thunk_1_2 = {&IsView, 96 const PPB_View_1_2 g_ppb_view_thunk_1_2 = {
106 &GetRect, 97 &IsView, &GetRect, &IsFullscreen,
107 &IsFullscreen, 98 &IsVisible, &IsPageVisible, &GetClipRect,
108 &IsVisible, 99 &GetDeviceScale, &GetCSSScale, &GetScrollOffset};
109 &IsPageVisible,
110 &GetClipRect,
111 &GetDeviceScale,
112 &GetCSSScale,
113 &GetScrollOffset};
114 100
115 } // namespace 101 } // namespace
116 102
117 PPAPI_THUNK_EXPORT const PPB_View_1_0* GetPPB_View_1_0_Thunk() { 103 PPAPI_THUNK_EXPORT const PPB_View_1_0* GetPPB_View_1_0_Thunk() {
118 return &g_ppb_view_thunk_1_0; 104 return &g_ppb_view_thunk_1_0;
119 } 105 }
120 106
121 PPAPI_THUNK_EXPORT const PPB_View_1_1* GetPPB_View_1_1_Thunk() { 107 PPAPI_THUNK_EXPORT const PPB_View_1_1* GetPPB_View_1_1_Thunk() {
122 return &g_ppb_view_thunk_1_1; 108 return &g_ppb_view_thunk_1_1;
123 } 109 }
124 110
125 PPAPI_THUNK_EXPORT const PPB_View_1_2* GetPPB_View_1_2_Thunk() { 111 PPAPI_THUNK_EXPORT const PPB_View_1_2* GetPPB_View_1_2_Thunk() {
126 return &g_ppb_view_thunk_1_2; 112 return &g_ppb_view_thunk_1_2;
127 } 113 }
128 114
129 } // namespace thunk 115 } // namespace thunk
130 } // namespace ppapi 116 } // namespace ppapi
OLDNEW
« ppapi/api/private/ppp_content_decryptor_private.idl ('K') | « ppapi/thunk/ppb_video_frame_thunk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698