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

Unified Diff: webkit/plugins/ppapi/ppb_scrollbar_group_impl.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: Keep the logic to call WebScrollbarGroupImpl's methods in WebKit entirely 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: webkit/plugins/ppapi/ppb_scrollbar_group_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_scrollbar_group_impl.cc (revision 0)
+++ webkit/plugins/ppapi/ppb_scrollbar_group_impl.cc (revision 0)
@@ -0,0 +1,39 @@
+// 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 "webkit/plugins/ppapi/ppb_scrollbar_group_impl.h"
+
+#include "base/logging.h"
+#include "ppapi/c/dev/ppb_scrollbar_group_dev.h"
+#include "ppapi/thunk/thunk.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebScrollbarGroup.h"
+#include "webkit/plugins/ppapi/common.h"
+#include "webkit/plugins/ppapi/plugin_module.h"
+#include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
+
+using ppapi::thunk::PPB_ScrollbarGroup_API;
+using WebKit::WebScrollbarGroup;
+
+namespace webkit {
+namespace ppapi {
+
+PPB_ScrollbarGroup_Impl::PPB_ScrollbarGroup_Impl(PluginInstance* instance)
+ : Resource(instance) {
+ scrollbar_group_.reset(WebScrollbarGroup::create(instance->container()));
+}
+
+PPB_ScrollbarGroup_Impl::~PPB_ScrollbarGroup_Impl() {
+}
+
+PPB_ScrollbarGroup_API* PPB_ScrollbarGroup_Impl::AsPPB_ScrollbarGroup_API() {
+ return this;
+}
+
+WebKit::WebScrollbarGroup* PPB_ScrollbarGroup_Impl::GetWebScrollbarGroup() {
+ return scrollbar_group_.get();
+}
+
+} // namespace ppapi
+} // namespace webkit
+
Property changes on: webkit\plugins\ppapi\ppb_scrollbar_group_impl.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698