OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_GROUP_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_GROUP_IMPL_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ppapi/thunk/ppb_scrollbar_group_api.h" |
| 11 #include "webkit/plugins/ppapi/resource.h" |
| 12 |
| 13 namespace WebKit { |
| 14 class WebScrollbarGroup; |
| 15 } |
| 16 |
| 17 namespace webkit { |
| 18 namespace ppapi { |
| 19 |
| 20 class PluginInstance; |
| 21 |
| 22 class PPB_ScrollbarGroup_Impl |
| 23 : public Resource, |
| 24 public ::ppapi::thunk::PPB_ScrollbarGroup_API { |
| 25 public: |
| 26 PPB_ScrollbarGroup_Impl(PluginInstance* instance); |
| 27 virtual ~PPB_ScrollbarGroup_Impl(); |
| 28 |
| 29 // ResourceObjectBase override. |
| 30 virtual PPB_ScrollbarGroup_API* AsPPB_ScrollbarGroup_API() OVERRIDE; |
| 31 |
| 32 // Called by PluginInstance so that we can forward these events to WebKit. |
| 33 void MouseEnteredContentArea(); |
| 34 void MouseMovedInContentArea(); |
| 35 void MouseExitedContentArea(); |
| 36 void WillStartLiveResize(); |
| 37 void ContentResized(); |
| 38 void WillEndLiveResize(); |
| 39 |
| 40 WebKit::WebScrollbarGroup* GetWebScrollbarGroup(); |
| 41 |
| 42 private: |
| 43 scoped_ptr<WebKit::WebScrollbarGroup> scrollbar_group_; |
| 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(PPB_ScrollbarGroup_Impl); |
| 46 }; |
| 47 |
| 48 } // namespace ppapi |
| 49 } // namespace webkit |
| 50 |
| 51 #endif // WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_GROUP_IMPL_H_ |
OLD | NEW |