OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 11 matching lines...) Expand all Loading... |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef WebScrollbarLayer_h | 26 #ifndef WebScrollbarLayer_h |
27 #define WebScrollbarLayer_h | 27 #define WebScrollbarLayer_h |
28 | 28 |
29 #include "WebLayer.h" | 29 #include "WebLayer.h" |
30 #include "WebScrollbarThemeGeometry.h" | 30 #include "WebScrollbarThemeGeometry.h" |
31 #include "WebScrollbarThemePainter.h" | 31 #include "WebScrollbarThemePainter.h" |
| 32 #include "cc/trees/element_id.h" |
32 | 33 |
33 namespace blink { | 34 namespace blink { |
34 | 35 |
35 class WebScrollbarLayer { | 36 class WebScrollbarLayer { |
36 public: | 37 public: |
37 virtual ~WebScrollbarLayer() {} | 38 virtual ~WebScrollbarLayer() {} |
38 | 39 |
39 virtual WebLayer* Layer() = 0; | 40 virtual WebLayer* Layer() = 0; |
40 | 41 |
41 virtual void SetScrollLayer(WebLayer*) = 0; | 42 virtual void SetScrollLayer(WebLayer*) = 0; |
| 43 |
| 44 virtual void SetElementId(const cc::ElementId&) = 0; |
42 }; | 45 }; |
43 | 46 |
44 } // namespace blink | 47 } // namespace blink |
45 | 48 |
46 #endif // WebScrollbarLayer_h | 49 #endif // WebScrollbarLayer_h |
OLD | NEW |