| 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 CC_SCROLLBAR_LAYER_IMPL_H_ | 5 #ifndef CC_SCROLLBAR_LAYER_IMPL_H_ |
| 6 #define CC_SCROLLBAR_LAYER_IMPL_H_ | 6 #define CC_SCROLLBAR_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include "cc/cc_export.h" | 8 #include "cc/cc_export.h" |
| 9 #include "cc/layer_impl.h" | 9 #include "cc/layer_impl.h" |
| 10 #include "cc/scrollbar_geometry_fixed_thumb.h" | 10 #include "cc/scrollbar_geometry_fixed_thumb.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 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(QuadSink&, AppendQuadsData&) OVERRIDE; | 43 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; |
| 44 | 44 |
| 45 virtual void didLoseOutputSurface() OVERRIDE; | 45 virtual void didLoseContext() OVERRIDE; |
| 46 | 46 |
| 47 protected: | 47 protected: |
| 48 explicit ScrollbarLayerImpl(int id); | 48 explicit ScrollbarLayerImpl(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 Scrollbar : public WebKit::WebScrollbar { | 52 class Scrollbar : public WebKit::WebScrollbar { |
| 53 public: | 53 public: |
| 54 explicit Scrollbar(ScrollbarLayerImpl* owner) : m_owner(owner) { } | 54 explicit Scrollbar(ScrollbarLayerImpl* owner) : m_owner(owner) { } |
| 55 | 55 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 bool m_isScrollableAreaActive; | 103 bool m_isScrollableAreaActive; |
| 104 bool m_isScrollViewScrollbar; | 104 bool m_isScrollViewScrollbar; |
| 105 bool m_enabled; | 105 bool m_enabled; |
| 106 bool m_isCustomScrollbar; | 106 bool m_isCustomScrollbar; |
| 107 bool m_isOverlayScrollbar; | 107 bool m_isOverlayScrollbar; |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 } | 110 } |
| 111 #endif // CC_SCROLLBAR_LAYER_IMPL_H_ | 111 #endif // CC_SCROLLBAR_LAYER_IMPL_H_ |
| OLD | NEW |