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

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

Issue 7538006: Pepper and WebKit API change to support a plugin knowing if a scrollbar is an overlay one. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Get rid of ScrollbarGroup's methods and the ResizeClient interface Created 9 years, 4 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ppapi/thunk/thunk.h"
6 #include "ppapi/thunk/enter.h"
7 #include "ppapi/thunk/ppb_scrollbar_group_api.h"
8 #include "ppapi/thunk/resource_creation_api.h"
9
10 namespace ppapi {
11 namespace thunk {
12
13 typedef EnterResource<PPB_ScrollbarGroup_API> EnterScrollbarGroup;
14
15 namespace {
16
17 PP_Resource Create(PP_Instance instance) {
18 EnterFunction<ResourceCreationAPI> enter(instance, true);
19 if (enter.failed())
20 return 0;
21 return enter.functions()->CreateScrollbarGroup(instance);
22 }
23
24 const PPB_ScrollbarGroup_Dev g_ppb_scrollbar_group_thunk = {
25 &Create,
26 };
27
28 } // namespace
29
30 const PPB_ScrollbarGroup_Dev* GetPPB_ScrollbarGroup_Thunk() {
31 return &g_ppb_scrollbar_group_thunk;
32 }
33
34 } // namespace thunk
35 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698