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

Unified Diff: webkit/plugins/ppapi/ppb_widget_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_video_decoder_impl.cc ('k') | webkit/plugins/ppapi/ppb_widget_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_widget_impl.h
===================================================================
--- webkit/plugins/ppapi/ppb_widget_impl.h (revision 213561)
+++ webkit/plugins/ppapi/ppb_widget_impl.h (working copy)
@@ -1,64 +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_WIDGET_IMPL_H_
-#define WEBKIT_PLUGINS_PPAPI_PPB_WIDGET_IMPL_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ppapi/c/pp_rect.h"
-#include "ppapi/shared_impl/resource.h"
-#include "ppapi/thunk/ppb_widget_api.h"
-
-namespace gfx {
-class Rect;
-}
-namespace ppapi {
-struct InputEventData;
-}
-
-namespace webkit {
-namespace ppapi {
-
-class PPB_ImageData_Impl;
-
-class PPB_Widget_Impl : public ::ppapi::Resource,
- public ::ppapi::thunk::PPB_Widget_API {
- public:
- explicit PPB_Widget_Impl(PP_Instance instance);
- virtual ~PPB_Widget_Impl();
-
- // Resource overrides.
- virtual ::ppapi::thunk::PPB_Widget_API* AsPPB_Widget_API() OVERRIDE;
-
- // PPB_WidgetAPI implementation.
- virtual PP_Bool Paint(const PP_Rect* rect, PP_Resource ) OVERRIDE;
- virtual PP_Bool HandleEvent(PP_Resource pp_input_event) OVERRIDE;
- virtual PP_Bool GetLocation(PP_Rect* location) OVERRIDE;
- virtual void SetLocation(const PP_Rect* location) OVERRIDE;
- virtual void SetScale(float scale) OVERRIDE;
-
- // Notifies the plugin instance that the given rect needs to be repainted.
- void Invalidate(const PP_Rect* dirty);
-
- protected:
- virtual PP_Bool PaintInternal(const gfx::Rect& rect,
- PPB_ImageData_Impl* image) = 0;
- virtual PP_Bool HandleEventInternal(const ::ppapi::InputEventData& data) = 0;
- virtual void SetLocationInternal(const PP_Rect* location) = 0;
-
- PP_Rect location() const { return location_; }
- float scale() const { return scale_; }
-
- private:
- PP_Rect location_;
- float scale_;
-
- DISALLOW_COPY_AND_ASSIGN(PPB_Widget_Impl);
-};
-
-} // namespace ppapi
-} // namespace webkit
-
-#endif // WEBKIT_PLUGINS_PPAPI_PPB_WIDGET_IMPL_H_
« no previous file with comments | « webkit/plugins/ppapi/ppb_video_decoder_impl.cc ('k') | webkit/plugins/ppapi/ppb_widget_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698