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

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

Issue 1820873005: Run ppapi/generators/generator.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « ppapi/thunk/ppb_view_dev_thunk.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 // From ppb_view.idl modified Wed Nov 5 14:29:15 2014. 5 // From ppb_view.idl modified Wed Jan 27 17:10:16 2016.
6
7 #include <stdint.h>
6 8
7 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/ppb_view.h" 10 #include "ppapi/c/ppb_view.h"
9 #include "ppapi/shared_impl/tracked_callback.h" 11 #include "ppapi/shared_impl/tracked_callback.h"
10 #include "ppapi/thunk/enter.h" 12 #include "ppapi/thunk/enter.h"
11 #include "ppapi/thunk/ppapi_thunk_export.h" 13 #include "ppapi/thunk/ppapi_thunk_export.h"
12 #include "ppapi/thunk/ppb_view_api.h" 14 #include "ppapi/thunk/ppb_view_api.h"
13 15
14 namespace ppapi { 16 namespace ppapi {
15 namespace thunk { 17 namespace thunk {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 81 }
80 82
81 PP_Bool GetScrollOffset(PP_Resource resource, struct PP_Point* offset) { 83 PP_Bool GetScrollOffset(PP_Resource resource, struct PP_Point* offset) {
82 VLOG(4) << "PPB_View::GetScrollOffset()"; 84 VLOG(4) << "PPB_View::GetScrollOffset()";
83 EnterResource<PPB_View_API> enter(resource, true); 85 EnterResource<PPB_View_API> enter(resource, true);
84 if (enter.failed()) 86 if (enter.failed())
85 return PP_FALSE; 87 return PP_FALSE;
86 return enter.object()->GetScrollOffset(offset); 88 return enter.object()->GetScrollOffset(offset);
87 } 89 }
88 90
89 const PPB_View_1_0 g_ppb_view_thunk_1_0 = {&IsView, 91 const PPB_View_1_0 g_ppb_view_thunk_1_0 = {
90 &GetRect, 92 &IsView, &GetRect, &IsFullscreen, &IsVisible, &IsPageVisible, &GetClipRect};
91 &IsFullscreen,
92 &IsVisible,
93 &IsPageVisible,
94 &GetClipRect};
95 93
96 const PPB_View_1_1 g_ppb_view_thunk_1_1 = {&IsView, 94 const PPB_View_1_1 g_ppb_view_thunk_1_1 = {
97 &GetRect, 95 &IsView, &GetRect, &IsFullscreen, &IsVisible,
98 &IsFullscreen, 96 &IsPageVisible, &GetClipRect, &GetDeviceScale, &GetCSSScale};
99 &IsVisible,
100 &IsPageVisible,
101 &GetClipRect,
102 &GetDeviceScale,
103 &GetCSSScale};
104 97
105 const PPB_View_1_2 g_ppb_view_thunk_1_2 = {&IsView, 98 const PPB_View_1_2 g_ppb_view_thunk_1_2 = {
106 &GetRect, 99 &IsView, &GetRect, &IsFullscreen,
107 &IsFullscreen, 100 &IsVisible, &IsPageVisible, &GetClipRect,
108 &IsVisible, 101 &GetDeviceScale, &GetCSSScale, &GetScrollOffset};
109 &IsPageVisible,
110 &GetClipRect,
111 &GetDeviceScale,
112 &GetCSSScale,
113 &GetScrollOffset};
114 102
115 } // namespace 103 } // namespace
116 104
117 PPAPI_THUNK_EXPORT const PPB_View_1_0* GetPPB_View_1_0_Thunk() { 105 PPAPI_THUNK_EXPORT const PPB_View_1_0* GetPPB_View_1_0_Thunk() {
118 return &g_ppb_view_thunk_1_0; 106 return &g_ppb_view_thunk_1_0;
119 } 107 }
120 108
121 PPAPI_THUNK_EXPORT const PPB_View_1_1* GetPPB_View_1_1_Thunk() { 109 PPAPI_THUNK_EXPORT const PPB_View_1_1* GetPPB_View_1_1_Thunk() {
122 return &g_ppb_view_thunk_1_1; 110 return &g_ppb_view_thunk_1_1;
123 } 111 }
124 112
125 PPAPI_THUNK_EXPORT const PPB_View_1_2* GetPPB_View_1_2_Thunk() { 113 PPAPI_THUNK_EXPORT const PPB_View_1_2* GetPPB_View_1_2_Thunk() {
126 return &g_ppb_view_thunk_1_2; 114 return &g_ppb_view_thunk_1_2;
127 } 115 }
128 116
129 } // namespace thunk 117 } // namespace thunk
130 } // namespace ppapi 118 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_view_dev_thunk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698