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

Side by Side Diff: ppapi/thunk/ppb_widget_dev_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, 8 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) 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 dev/ppb_widget_dev.idl modified Tue Aug 20 08:13:36 2013. 5 // From dev/ppb_widget_dev.idl modified Mon May 6 10:11:29 2013.
6 6
7 #include "ppapi/c/dev/ppb_widget_dev.h" 7 #include "ppapi/c/dev/ppb_widget_dev.h"
8 #include "ppapi/c/pp_errors.h" 8 #include "ppapi/c/pp_errors.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_widget_api.h" 12 #include "ppapi/thunk/ppb_widget_api.h"
13 13
14 namespace ppapi { 14 namespace ppapi {
15 namespace thunk { 15 namespace thunk {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 57 }
58 58
59 void SetScale(PP_Resource widget, float scale) { 59 void SetScale(PP_Resource widget, float scale) {
60 VLOG(4) << "PPB_Widget_Dev::SetScale()"; 60 VLOG(4) << "PPB_Widget_Dev::SetScale()";
61 EnterResource<PPB_Widget_API> enter(widget, false); 61 EnterResource<PPB_Widget_API> enter(widget, false);
62 if (enter.failed()) 62 if (enter.failed())
63 return; 63 return;
64 enter.object()->SetScale(scale); 64 enter.object()->SetScale(scale);
65 } 65 }
66 66
67 const PPB_Widget_Dev_0_3 g_ppb_widget_dev_thunk_0_3 = { 67 const PPB_Widget_Dev_0_3 g_ppb_widget_dev_thunk_0_3 = { //
68 &IsWidget, 68 &IsWidget, //
69 &Paint, 69 &Paint, //
70 &HandleEvent, 70 &HandleEvent, //
71 &GetLocation, 71 &GetLocation, //
72 &SetLocation 72 &SetLocation //
73 }; 73 };
74 74
75 const PPB_Widget_Dev_0_4 g_ppb_widget_dev_thunk_0_4 = { 75 const PPB_Widget_Dev_0_4 g_ppb_widget_dev_thunk_0_4 = { //
76 &IsWidget, 76 &IsWidget, //
77 &Paint, 77 &Paint, //
78 &HandleEvent, 78 &HandleEvent, //
79 &GetLocation, 79 &GetLocation, //
80 &SetLocation, 80 &SetLocation, //
81 &SetScale 81 &SetScale //
82 }; 82 };
83 83
84 } // namespace 84 } // namespace
85 85
86 PPAPI_THUNK_EXPORT const PPB_Widget_Dev_0_3* GetPPB_Widget_Dev_0_3_Thunk() { 86 PPAPI_THUNK_EXPORT const PPB_Widget_Dev_0_3* GetPPB_Widget_Dev_0_3_Thunk() {
87 return &g_ppb_widget_dev_thunk_0_3; 87 return &g_ppb_widget_dev_thunk_0_3;
88 } 88 }
89 89
90 PPAPI_THUNK_EXPORT const PPB_Widget_Dev_0_4* GetPPB_Widget_Dev_0_4_Thunk() { 90 PPAPI_THUNK_EXPORT const PPB_Widget_Dev_0_4* GetPPB_Widget_Dev_0_4_Thunk() {
91 return &g_ppb_widget_dev_thunk_0_4; 91 return &g_ppb_widget_dev_thunk_0_4;
92 } 92 }
93 93
94 } // namespace thunk 94 } // namespace thunk
95 } // namespace ppapi 95 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698