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

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

Issue 238923007: PPAPI: Format ppapi/thunk using clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 1 month 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
« no previous file with comments | « ppapi/thunk/ppb_view_dev_thunk.cc ('k') | ppapi/thunk/ppb_websocket_thunk.cc » ('j') | 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 Jun 11 15:42:26 2014. 5 // From ppb_view.idl modified Wed Nov 5 14:29:15 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 = { 89 const PPB_View_1_0 g_ppb_view_thunk_1_0 = {&IsView,
90 &IsView, 90 &GetRect,
91 &GetRect, 91 &IsFullscreen,
92 &IsFullscreen, 92 &IsVisible,
93 &IsVisible, 93 &IsPageVisible,
94 &IsPageVisible, 94 &GetClipRect};
95 &GetClipRect
96 };
97 95
98 const PPB_View_1_1 g_ppb_view_thunk_1_1 = { 96 const PPB_View_1_1 g_ppb_view_thunk_1_1 = {&IsView,
99 &IsView, 97 &GetRect,
100 &GetRect, 98 &IsFullscreen,
101 &IsFullscreen, 99 &IsVisible,
102 &IsVisible, 100 &IsPageVisible,
103 &IsPageVisible, 101 &GetClipRect,
104 &GetClipRect, 102 &GetDeviceScale,
105 &GetDeviceScale, 103 &GetCSSScale};
106 &GetCSSScale
107 };
108 104
109 const PPB_View_1_2 g_ppb_view_thunk_1_2 = { 105 const PPB_View_1_2 g_ppb_view_thunk_1_2 = {&IsView,
110 &IsView, 106 &GetRect,
111 &GetRect, 107 &IsFullscreen,
112 &IsFullscreen, 108 &IsVisible,
113 &IsVisible, 109 &IsPageVisible,
114 &IsPageVisible, 110 &GetClipRect,
115 &GetClipRect, 111 &GetDeviceScale,
116 &GetDeviceScale, 112 &GetCSSScale,
117 &GetCSSScale, 113 &GetScrollOffset};
118 &GetScrollOffset
119 };
120 114
121 } // namespace 115 } // namespace
122 116
123 PPAPI_THUNK_EXPORT const PPB_View_1_0* GetPPB_View_1_0_Thunk() { 117 PPAPI_THUNK_EXPORT const PPB_View_1_0* GetPPB_View_1_0_Thunk() {
124 return &g_ppb_view_thunk_1_0; 118 return &g_ppb_view_thunk_1_0;
125 } 119 }
126 120
127 PPAPI_THUNK_EXPORT const PPB_View_1_1* GetPPB_View_1_1_Thunk() { 121 PPAPI_THUNK_EXPORT const PPB_View_1_1* GetPPB_View_1_1_Thunk() {
128 return &g_ppb_view_thunk_1_1; 122 return &g_ppb_view_thunk_1_1;
129 } 123 }
130 124
131 PPAPI_THUNK_EXPORT const PPB_View_1_2* GetPPB_View_1_2_Thunk() { 125 PPAPI_THUNK_EXPORT const PPB_View_1_2* GetPPB_View_1_2_Thunk() {
132 return &g_ppb_view_thunk_1_2; 126 return &g_ppb_view_thunk_1_2;
133 } 127 }
134 128
135 } // namespace thunk 129 } // namespace thunk
136 } // namespace ppapi 130 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_view_dev_thunk.cc ('k') | ppapi/thunk/ppb_websocket_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698