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 #include "webkit/plugins/ppapi/ppb_scrollbar_group_impl.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "ppapi/c/dev/ppb_scrollbar_group_dev.h" |
| 9 #include "ppapi/thunk/thunk.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScrollbarGroup.h" |
| 11 #include "webkit/plugins/ppapi/common.h" |
| 12 #include "webkit/plugins/ppapi/plugin_module.h" |
| 13 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 14 |
| 15 using ppapi::thunk::PPB_ScrollbarGroup_API; |
| 16 using WebKit::WebScrollbarGroup; |
| 17 |
| 18 namespace webkit { |
| 19 namespace ppapi { |
| 20 |
| 21 PPB_ScrollbarGroup_Impl::PPB_ScrollbarGroup_Impl(PluginInstance* instance) |
| 22 : Resource(instance) { |
| 23 scrollbar_group_.reset(WebScrollbarGroup::create(instance->container())); |
| 24 } |
| 25 |
| 26 PPB_ScrollbarGroup_Impl::~PPB_ScrollbarGroup_Impl() { |
| 27 } |
| 28 |
| 29 PPB_ScrollbarGroup_API* PPB_ScrollbarGroup_Impl::AsPPB_ScrollbarGroup_API() { |
| 30 return this; |
| 31 } |
| 32 |
| 33 WebKit::WebScrollbarGroup* PPB_ScrollbarGroup_Impl::GetWebScrollbarGroup() { |
| 34 return scrollbar_group_.get(); |
| 35 } |
| 36 |
| 37 } // namespace ppapi |
| 38 } // namespace webkit |
| 39 |
OLD | NEW |