OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/task.h" | 10 #include "base/task.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 class PPB_Scrollbar_Impl : public PPB_Widget_Impl, | 22 class PPB_Scrollbar_Impl : public PPB_Widget_Impl, |
23 public ::ppapi::thunk::PPB_Scrollbar_API, | 23 public ::ppapi::thunk::PPB_Scrollbar_API, |
24 public WebKit::WebScrollbarClient { | 24 public WebKit::WebScrollbarClient { |
25 public: | 25 public: |
26 static PP_Resource Create(PluginInstance* instance, | 26 static PP_Resource Create(PluginInstance* instance, |
27 bool vertical); | 27 bool vertical); |
28 | 28 |
29 virtual ~PPB_Scrollbar_Impl(); | 29 virtual ~PPB_Scrollbar_Impl(); |
30 | 30 |
31 // ResourceObjectBase override. | 31 // Resource override. |
32 virtual PPB_Scrollbar_API* AsPPB_Scrollbar_API() OVERRIDE; | 32 virtual PPB_Scrollbar_API* AsPPB_Scrollbar_API() OVERRIDE; |
33 | 33 |
34 // Returns a pointer to the interface implementing PPB_Scrollbar_0_3 that is | 34 // Returns a pointer to the interface implementing PPB_Scrollbar_0_3 that is |
35 // exposed to the plugin. New code should use the thunk system for the new | 35 // exposed to the plugin. New code should use the thunk system for the new |
36 // version of this API. | 36 // version of this API. |
37 static const PPB_Scrollbar_0_3_Dev* Get0_3Interface(); | 37 static const PPB_Scrollbar_0_3_Dev* Get0_3Interface(); |
38 | 38 |
39 // Returns a pointer to the interface implementing PPB_Scrollbar_0_4 that is | 39 // Returns a pointer to the interface implementing PPB_Scrollbar_0_4 that is |
40 // exposed to the plugin. New code should use the thunk system for the new | 40 // exposed to the plugin. New code should use the thunk system for the new |
41 // version of this API. | 41 // version of this API. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // Used so that the post task for Invalidate doesn't keep an extra reference. | 79 // Used so that the post task for Invalidate doesn't keep an extra reference. |
80 ScopedRunnableMethodFactory<PPB_Scrollbar_Impl> method_factory_; | 80 ScopedRunnableMethodFactory<PPB_Scrollbar_Impl> method_factory_; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(PPB_Scrollbar_Impl); | 82 DISALLOW_COPY_AND_ASSIGN(PPB_Scrollbar_Impl); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace ppapi | 85 } // namespace ppapi |
86 } // namespace webkit | 86 } // namespace webkit |
87 | 87 |
88 #endif // WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_ | 88 #endif // WEBKIT_PLUGINS_PPAPI_PPB_SCROLLBAR_IMPL_H_ |
OLD | NEW |