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

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

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more more clang fun Created 7 years, 5 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
« no previous file with comments | « webkit/plugins/ppapi/ppb_proxy_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 213561)
+++ webkit/plugins/ppapi/ppb_scrollbar_impl.h (working copy)
@@ -1,78 +0,0 @@
-// Copyright (c) 2012 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_IMPL_H_
-#define WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_
-
-#include <vector>
-
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/weak_ptr.h"
-#include "ppapi/thunk/ppb_scrollbar_api.h"
-#include "third_party/WebKit/public/platform/WebRect.h"
-#include "third_party/WebKit/public/web/WebPluginScrollbarClient.h"
-#include "ui/gfx/rect.h"
-#include "webkit/plugins/ppapi/ppb_widget_impl.h"
-
-namespace webkit {
-namespace ppapi {
-
-class PPB_Scrollbar_Impl : public PPB_Widget_Impl,
- public ::ppapi::thunk::PPB_Scrollbar_API,
- public WebKit::WebPluginScrollbarClient {
- public:
- static PP_Resource Create(PP_Instance instance, bool vertical);
-
- virtual ~PPB_Scrollbar_Impl();
-
- // Resource overrides.
- virtual PPB_Scrollbar_API* AsPPB_Scrollbar_API() OVERRIDE;
- virtual void InstanceWasDeleted();
-
- // PPB_Scrollbar_API implementation.
- virtual uint32_t GetThickness() OVERRIDE;
- virtual bool IsOverlay() OVERRIDE;
- virtual uint32_t GetValue() OVERRIDE;
- virtual void SetValue(uint32_t value) OVERRIDE;
- virtual void SetDocumentSize(uint32_t size) OVERRIDE;
- virtual void SetTickMarks(const PP_Rect* tick_marks, uint32_t count) OVERRIDE;
- virtual void ScrollBy(PP_ScrollBy_Dev unit, int32_t multiplier) OVERRIDE;
-
- private:
- explicit PPB_Scrollbar_Impl(PP_Instance instance);
- void Init(bool vertical);
-
- // PPB_Widget private implementation.
- virtual PP_Bool PaintInternal(const gfx::Rect& rect,
- PPB_ImageData_Impl* image) OVERRIDE;
- virtual PP_Bool HandleEventInternal(
- const ::ppapi::InputEventData& data) OVERRIDE;
- virtual void SetLocationInternal(const PP_Rect* location) OVERRIDE;
-
- // WebKit::WebPluginScrollbarClient implementation.
- virtual void valueChanged(WebKit::WebPluginScrollbar* scrollbar) OVERRIDE;
- virtual void overlayChanged(WebKit::WebPluginScrollbar* scrollbar) OVERRIDE;
- virtual void invalidateScrollbarRect(WebKit::WebPluginScrollbar* scrollbar,
- const WebKit::WebRect& rect) OVERRIDE;
- virtual void getTickmarks(
- WebKit::WebPluginScrollbar* scrollbar,
- WebKit::WebVector<WebKit::WebRect>* tick_marks) const OVERRIDE;
-
- void NotifyInvalidate();
-
- gfx::Rect dirty_;
- std::vector<WebKit::WebRect> tickmarks_;
- scoped_ptr<WebKit::WebPluginScrollbar> scrollbar_;
-
- // Used so that the post task for Invalidate doesn't keep an extra reference.
- base::WeakPtrFactory<PPB_Scrollbar_Impl> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(PPB_Scrollbar_Impl);
-};
-
-} // namespace ppapi
-} // namespace webkit
-
-#endif // WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_
« no previous file with comments | « webkit/plugins/ppapi/ppb_proxy_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