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

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

Issue 5828003: Move the Pepper implementation from webkit/glue/plugins/pepper_* to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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
« no previous file with comments | « webkit/plugins/ppapi/ppb_pdf_impl.cc ('k') | webkit/plugins/ppapi/ppb_scrollbar_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_scrollbar_impl.h
===================================================================
--- webkit/plugins/ppapi/ppb_scrollbar_impl.h (revision 0)
+++ webkit/plugins/ppapi/ppb_scrollbar_impl.h (working copy)
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_GLUE_PLUGINS_PEPPER_SCROLLBAR_H_
-#define WEBKIT_GLUE_PLUGINS_PEPPER_SCROLLBAR_H_
+#ifndef WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_
+#define WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_
#include <vector>
@@ -11,23 +11,25 @@
#include "ppapi/c/dev/ppb_scrollbar_dev.h"
#include "third_party/WebKit/WebKit/chromium/public/WebRect.h"
#include "third_party/WebKit/WebKit/chromium/public/WebScrollbarClient.h"
-#include "webkit/glue/plugins/pepper_widget.h"
+#include "webkit/plugins/ppapi/ppb_widget_impl.h"
-namespace pepper {
+namespace webkit {
+namespace ppapi {
class PluginInstance;
-class Scrollbar : public Widget, public WebKit::WebScrollbarClient {
+class PPB_Scrollbar_Impl : public PPB_Widget_Impl,
+ public WebKit::WebScrollbarClient {
public:
- Scrollbar(PluginInstance* instance, bool vertical);
- virtual ~Scrollbar();
+ PPB_Scrollbar_Impl(PluginInstance* instance, bool vertical);
+ virtual ~PPB_Scrollbar_Impl();
// Returns a pointer to the interface implementing PPB_Scrollbar that is
// exposed to the plugin.
static const PPB_Scrollbar_Dev* GetInterface();
// Resource overrides.
- virtual Scrollbar* AsScrollbar();
+ virtual PPB_Scrollbar_Impl* AsPPB_Scrollbar_Impl();
// PPB_Scrollbar implementation.
uint32_t GetValue();
@@ -37,7 +39,7 @@
void ScrollBy(PP_ScrollBy_Dev unit, int32_t multiplier);
// PPB_Widget implementation.
- virtual bool Paint(const PP_Rect* rect, ImageData* image);
+ virtual bool Paint(const PP_Rect* rect, PPB_ImageData_Impl* image);
virtual bool HandleEvent(const PP_InputEvent* event);
virtual void SetLocationInternal(const PP_Rect* location);
@@ -55,8 +57,11 @@
gfx::Rect dirty_;
std::vector<WebKit::WebRect> tickmarks_;
scoped_ptr<WebKit::WebScrollbar> scrollbar_;
+
+ DISALLOW_COPY_AND_ASSIGN(PPB_Scrollbar_Impl);
};
-} // namespace pepper
+} // namespace ppapi
+} // namespace webkit
-#endif // WEBKIT_GLUE_PLUGINS_PEPPER_SCROLLBAR_H_
+#endif // WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_
« no previous file with comments | « webkit/plugins/ppapi/ppb_pdf_impl.cc ('k') | webkit/plugins/ppapi/ppb_scrollbar_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698