| 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_
|
|
|