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

Unified Diff: webkit/glue/plugins/pepper_scrollbar.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/glue/plugins/pepper_resource_tracker.cc ('k') | webkit/glue/plugins/pepper_scrollbar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_scrollbar.h
===================================================================
--- webkit/glue/plugins/pepper_scrollbar.h (revision 69381)
+++ webkit/glue/plugins/pepper_scrollbar.h (working copy)
@@ -1,62 +0,0 @@
-// Copyright (c) 2010 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_GLUE_PLUGINS_PEPPER_SCROLLBAR_H_
-#define WEBKIT_GLUE_PLUGINS_PEPPER_SCROLLBAR_H_
-
-#include <vector>
-
-#include "gfx/rect.h"
-#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"
-
-namespace pepper {
-
-class PluginInstance;
-
-class Scrollbar : public Widget, public WebKit::WebScrollbarClient {
- public:
- Scrollbar(PluginInstance* instance, bool vertical);
- virtual ~Scrollbar();
-
- // 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();
-
- // PPB_Scrollbar implementation.
- uint32_t GetValue();
- void SetValue(uint32_t value);
- void SetDocumentSize(uint32_t size);
- void SetTickMarks(const PP_Rect* tick_marks, uint32_t count);
- void ScrollBy(PP_ScrollBy_Dev unit, int32_t multiplier);
-
- // PPB_Widget implementation.
- virtual bool Paint(const PP_Rect* rect, ImageData* image);
- virtual bool HandleEvent(const PP_InputEvent* event);
- virtual void SetLocationInternal(const PP_Rect* location);
-
- private:
- // WebKit::WebScrollbarClient implementation.
- virtual void valueChanged(WebKit::WebScrollbar* scrollbar);
- virtual void invalidateScrollbarRect(WebKit::WebScrollbar* scrollbar,
- const WebKit::WebRect& rect);
- virtual void getTickmarks(
- WebKit::WebScrollbar* scrollbar,
- WebKit::WebVector<WebKit::WebRect>* tick_marks) const;
-
- void NotifyInvalidate();
-
- gfx::Rect dirty_;
- std::vector<WebKit::WebRect> tickmarks_;
- scoped_ptr<WebKit::WebScrollbar> scrollbar_;
-};
-
-} // namespace pepper
-
-#endif // WEBKIT_GLUE_PLUGINS_PEPPER_SCROLLBAR_H_
« no previous file with comments | « webkit/glue/plugins/pepper_resource_tracker.cc ('k') | webkit/glue/plugins/pepper_scrollbar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698