OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 CCScrollbarLayerImpl_h | 5 #ifndef CCScrollbarLayerImpl_h |
6 #define CCScrollbarLayerImpl_h | 6 #define CCScrollbarLayerImpl_h |
7 | 7 |
8 #if USE(ACCELERATED_COMPOSITING) | 8 #if USE(ACCELERATED_COMPOSITING) |
9 | 9 |
10 #include "CCLayerImpl.h" | 10 #include "CCLayerImpl.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 void setCurrentPos(float currentPos) { m_currentPos = currentPos; } | 33 void setCurrentPos(float currentPos) { m_currentPos = currentPos; } |
34 | 34 |
35 int totalSize() const { return m_totalSize; } | 35 int totalSize() const { return m_totalSize; } |
36 void setTotalSize(int totalSize) { m_totalSize = totalSize; } | 36 void setTotalSize(int totalSize) { m_totalSize = totalSize; } |
37 | 37 |
38 int maximum() const { return m_maximum; } | 38 int maximum() const { return m_maximum; } |
39 void setMaximum(int maximum) { m_maximum = maximum; } | 39 void setMaximum(int maximum) { m_maximum = maximum; } |
40 | 40 |
41 WebKit::WebScrollbar::Orientation orientation() const { return m_orientation
; } | 41 WebKit::WebScrollbar::Orientation orientation() const { return m_orientation
; } |
42 | 42 |
43 virtual void appendQuads(CCQuadSink&, bool& hadMissingTiles) OVERRIDE; | 43 virtual void appendQuads(CCQuadSink&, CCAppendQuadsData&) OVERRIDE; |
44 | 44 |
45 virtual void didLoseContext() OVERRIDE; | 45 virtual void didLoseContext() OVERRIDE; |
46 | 46 |
47 protected: | 47 protected: |
48 explicit CCScrollbarLayerImpl(int id); | 48 explicit CCScrollbarLayerImpl(int id); |
49 | 49 |
50 private: | 50 private: |
51 // nested class only to avoid namespace problem | 51 // nested class only to avoid namespace problem |
52 class CCScrollbar : public WebKit::WebScrollbar { | 52 class CCScrollbar : public WebKit::WebScrollbar { |
53 public: | 53 public: |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 bool m_isScrollViewScrollbar; | 100 bool m_isScrollViewScrollbar; |
101 bool m_enabled; | 101 bool m_enabled; |
102 bool m_isCustomScrollbar; | 102 bool m_isCustomScrollbar; |
103 bool m_isOverlayScrollbar; | 103 bool m_isOverlayScrollbar; |
104 }; | 104 }; |
105 | 105 |
106 } | 106 } |
107 #endif // USE(ACCELERATED_COMPOSITING) | 107 #endif // USE(ACCELERATED_COMPOSITING) |
108 | 108 |
109 #endif | 109 #endif |
OLD | NEW |