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

Unified Diff: webkit/plugins/ppapi/ppb_scrollbar_group_impl.h

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.h
===================================================================
--- webkit/plugins/ppapi/ppb_scrollbar_group_impl.h (revision 0)
+++ webkit/plugins/ppapi/ppb_scrollbar_group_impl.h (revision 0)
@@ -0,0 +1,43 @@
+// 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.
+
+#ifndef WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_GROUP_IMPL_H_
+#define WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_GROUP_IMPL_H_
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+#include "ppapi/thunk/ppb_scrollbar_group_api.h"
+#include "webkit/plugins/ppapi/resource.h"
+
+namespace WebKit {
+class WebScrollbarGroup;
+}
+
+namespace webkit {
+namespace ppapi {
+
+class PluginInstance;
+
+class PPB_ScrollbarGroup_Impl
+ : public Resource,
+ public ::ppapi::thunk::PPB_ScrollbarGroup_API {
+ public:
+ PPB_ScrollbarGroup_Impl(PluginInstance* instance);
+ virtual ~PPB_ScrollbarGroup_Impl();
+
+ // ResourceObjectBase override.
+ virtual PPB_ScrollbarGroup_API* AsPPB_ScrollbarGroup_API() OVERRIDE;
+
+ WebKit::WebScrollbarGroup* GetWebScrollbarGroup();
+
+ private:
+ scoped_ptr<WebKit::WebScrollbarGroup> scrollbar_group_;
+
+ DISALLOW_COPY_AND_ASSIGN(PPB_ScrollbarGroup_Impl);
+};
+
+} // namespace ppapi
+} // namespace webkit
+
+#endif // WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_GROUP_IMPL_H_
Property changes on: webkit\plugins\ppapi\ppb_scrollbar_group_impl.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698