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

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

Issue 238923007: PPAPI: Format ppapi/thunk using clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use Popen instead, force carriage returns in thunks 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 #include "ppapi/thunk/thunk.h" 5 #include "ppapi/thunk/thunk.h"
6 #include "ppapi/thunk/enter.h" 6 #include "ppapi/thunk/enter.h"
7 #include "ppapi/thunk/ppb_scrollbar_api.h" 7 #include "ppapi/thunk/ppb_scrollbar_api.h"
8 #include "ppapi/thunk/resource_creation_api.h" 8 #include "ppapi/thunk/resource_creation_api.h"
9 9
10 namespace ppapi { 10 namespace ppapi {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 enter.object()->SetTickMarks(tick_marks, count); 67 enter.object()->SetTickMarks(tick_marks, count);
68 } 68 }
69 69
70 void ScrollBy(PP_Resource scrollbar, PP_ScrollBy_Dev unit, int32_t multiplier) { 70 void ScrollBy(PP_Resource scrollbar, PP_ScrollBy_Dev unit, int32_t multiplier) {
71 EnterScrollbar enter(scrollbar, true); 71 EnterScrollbar enter(scrollbar, true);
72 if (enter.succeeded()) 72 if (enter.succeeded())
73 enter.object()->ScrollBy(unit, multiplier); 73 enter.object()->ScrollBy(unit, multiplier);
74 } 74 }
75 75
76 const PPB_Scrollbar_Dev g_ppb_scrollbar_thunk = { 76 const PPB_Scrollbar_Dev g_ppb_scrollbar_thunk = {
77 &Create, 77 &Create, &IsScrollbar, &GetThickness, &IsOverlay, &GetValue,
78 &IsScrollbar, 78 &SetValue, &SetDocumentSize, &SetTickMarks, &ScrollBy};
79 &GetThickness,
80 &IsOverlay,
81 &GetValue,
82 &SetValue,
83 &SetDocumentSize,
84 &SetTickMarks,
85 &ScrollBy
86 };
87 79
88 } // namespace 80 } // namespace
89 81
90 const PPB_Scrollbar_Dev_0_5* GetPPB_Scrollbar_Dev_0_5_Thunk() { 82 const PPB_Scrollbar_Dev_0_5* GetPPB_Scrollbar_Dev_0_5_Thunk() {
91 return &g_ppb_scrollbar_thunk; 83 return &g_ppb_scrollbar_thunk;
92 } 84 }
93 85
94 } // namespace thunk 86 } // namespace thunk
95 } // namespace ppapi 87 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698