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 "ppapi/cpp/dev/scrollbar_group_dev.h" |
| 6 |
| 7 #include "ppapi/cpp/instance.h" |
| 8 #include "ppapi/cpp/module.h" |
| 9 #include "ppapi/cpp/module_impl.h" |
| 10 |
| 11 namespace pp { |
| 12 |
| 13 namespace { |
| 14 |
| 15 template <> const char* interface_name<PPB_ScrollbarGroup_Dev>() { |
| 16 return PPB_SCROLLBAR_GROUP_DEV_INTERFACE; |
| 17 } |
| 18 |
| 19 } // namespace |
| 20 |
| 21 ScrollbarGroup_Dev::ScrollbarGroup_Dev(PP_Resource resource) |
| 22 : Resource(resource) { |
| 23 } |
| 24 |
| 25 ScrollbarGroup_Dev::ScrollbarGroup_Dev(const Instance& instance) { |
| 26 if (!has_interface<PPB_ScrollbarGroup_Dev>()) |
| 27 return; |
| 28 PassRefFromConstructor(get_interface<PPB_ScrollbarGroup_Dev>()->Create( |
| 29 instance.pp_instance())); |
| 30 } |
| 31 |
| 32 ScrollbarGroup_Dev::ScrollbarGroup_Dev(const ScrollbarGroup_Dev& other) |
| 33 : Resource(other) { |
| 34 } |
| 35 |
| 36 } // namespace pp |
OLD | NEW |