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 WebKit::WebScrollbarGroup* GetWebScrollbarGroup(); |
| 33 |
| 34 private: |
| 35 scoped_ptr<WebKit::WebScrollbarGroup> scrollbar_group_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(PPB_ScrollbarGroup_Impl); |
| 38 }; |
| 39 |
| 40 } // namespace ppapi |
| 41 } // namespace webkit |
| 42 |
| 43 #endif // WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_GROUP_IMPL_H_ |
OLD | NEW |