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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/thunk/ppb_scrollbar_group_thunk.cc
===================================================================
--- ppapi/thunk/ppb_scrollbar_group_thunk.cc (revision 0)
+++ ppapi/thunk/ppb_scrollbar_group_thunk.cc (revision 0)
@@ -0,0 +1,35 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ppapi/thunk/thunk.h"
+#include "ppapi/thunk/enter.h"
+#include "ppapi/thunk/ppb_scrollbar_group_api.h"
+#include "ppapi/thunk/resource_creation_api.h"
+
+namespace ppapi {
+namespace thunk {
+
+typedef EnterResource<PPB_ScrollbarGroup_API> EnterScrollbarGroup;
+
+namespace {
+
+PP_Resource Create(PP_Instance instance) {
+ EnterFunction<ResourceCreationAPI> enter(instance, true);
+ if (enter.failed())
+ return 0;
+ return enter.functions()->CreateScrollbarGroup(instance);
+}
+
+const PPB_ScrollbarGroup_Dev g_ppb_scrollbar_group_thunk = {
+ &Create,
+};
+
+} // namespace
+
+const PPB_ScrollbarGroup_Dev* GetPPB_ScrollbarGroup_Thunk() {
+ return &g_ppb_scrollbar_group_thunk;
+}
+
+} // namespace thunk
+} // namespace ppapi
Property changes on: ppapi\thunk\ppb_scrollbar_group_thunk.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698