| 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 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "CCScrollbarGeometryStub.h" | 7 #include "CCScrollbarGeometryStub.h" |
| 8 | 8 |
| 9 using WebKit::WebRect; | 9 using WebKit::WebRect; |
| 10 using WebKit::WebScrollbar; | 10 using WebKit::WebScrollbar; |
| 11 using WebKit::WebScrollbarThemeGeometry; | 11 using WebKit::WebScrollbarThemeGeometry; |
| 12 | 12 |
| 13 namespace WebCore { | 13 namespace cc { |
| 14 | 14 |
| 15 CCScrollbarGeometryStub::CCScrollbarGeometryStub(PassOwnPtr<WebScrollbarThemeGeo
metry> geometry) | 15 CCScrollbarGeometryStub::CCScrollbarGeometryStub(PassOwnPtr<WebScrollbarThemeGeo
metry> geometry) |
| 16 : m_geometry(geometry) | 16 : m_geometry(geometry) |
| 17 { | 17 { |
| 18 } | 18 } |
| 19 | 19 |
| 20 CCScrollbarGeometryStub::~CCScrollbarGeometryStub() | 20 CCScrollbarGeometryStub::~CCScrollbarGeometryStub() |
| 21 { | 21 { |
| 22 } | 22 } |
| 23 | 23 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 { | 100 { |
| 101 return m_geometry->constrainTrackRectToTrackPieces(scrollbar, rect); | 101 return m_geometry->constrainTrackRectToTrackPieces(scrollbar, rect); |
| 102 } | 102 } |
| 103 | 103 |
| 104 void CCScrollbarGeometryStub::splitTrack(WebScrollbar* scrollbar, const WebRect&
unconstrainedTrackRect, WebRect& beforeThumbRect, WebRect& thumbRect, WebRect&
afterThumbRect) | 104 void CCScrollbarGeometryStub::splitTrack(WebScrollbar* scrollbar, const WebRect&
unconstrainedTrackRect, WebRect& beforeThumbRect, WebRect& thumbRect, WebRect&
afterThumbRect) |
| 105 { | 105 { |
| 106 m_geometry->splitTrack(scrollbar, unconstrainedTrackRect, beforeThumbRect, t
humbRect, afterThumbRect); | 106 m_geometry->splitTrack(scrollbar, unconstrainedTrackRect, beforeThumbRect, t
humbRect, afterThumbRect); |
| 107 } | 107 } |
| 108 | 108 |
| 109 } | 109 } |
| OLD | NEW |