Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(880)

Unified Diff: cc/CCScrollbarGeometryStub.cpp

Issue 10879109: Update libcc / bindings snapshot to WebKit r126830 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/CCScrollbarGeometryStub.h ('k') | cc/CCScrollbarLayerImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCScrollbarGeometryStub.cpp
diff --git a/cc/CCScrollbarGeometryStub.cpp b/cc/CCScrollbarGeometryStub.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..7ce7a1d0b21a9c3abca303814b9f65e4b0cde98a
--- /dev/null
+++ b/cc/CCScrollbarGeometryStub.cpp
@@ -0,0 +1,109 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+
+#include "CCScrollbarGeometryStub.h"
+
+using WebKit::WebRect;
+using WebKit::WebScrollbar;
+using WebKit::WebScrollbarThemeGeometry;
+
+namespace WebCore {
+
+CCScrollbarGeometryStub::CCScrollbarGeometryStub(PassOwnPtr<WebScrollbarThemeGeometry> geometry)
+ : m_geometry(geometry)
+{
+}
+
+CCScrollbarGeometryStub::~CCScrollbarGeometryStub()
+{
+}
+
+WebScrollbarThemeGeometry* CCScrollbarGeometryStub::clone() const
+{
+ return m_geometry->clone();
+}
+
+int CCScrollbarGeometryStub::thumbPosition(WebScrollbar* scrollbar)
+{
+ return m_geometry->thumbPosition(scrollbar);
+}
+
+int CCScrollbarGeometryStub::thumbLength(WebScrollbar* scrollbar)
+{
+ return m_geometry->thumbLength(scrollbar);
+}
+
+int CCScrollbarGeometryStub::trackPosition(WebScrollbar* scrollbar)
+{
+ return m_geometry->trackPosition(scrollbar);
+}
+
+int CCScrollbarGeometryStub::trackLength(WebScrollbar* scrollbar)
+{
+ return m_geometry->trackLength(scrollbar);
+}
+
+bool CCScrollbarGeometryStub::hasButtons(WebScrollbar* scrollbar)
+{
+ return m_geometry->hasButtons(scrollbar);
+}
+
+bool CCScrollbarGeometryStub::hasThumb(WebScrollbar* scrollbar)
+{
+ return m_geometry->hasThumb(scrollbar);
+}
+
+WebRect CCScrollbarGeometryStub::trackRect(WebScrollbar* scrollbar)
+{
+ return m_geometry->trackRect(scrollbar);
+}
+
+WebRect CCScrollbarGeometryStub::thumbRect(WebScrollbar* scrollbar)
+{
+ return m_geometry->thumbRect(scrollbar);
+}
+
+int CCScrollbarGeometryStub::minimumThumbLength(WebScrollbar* scrollbar)
+{
+ return m_geometry->minimumThumbLength(scrollbar);
+}
+
+int CCScrollbarGeometryStub::scrollbarThickness(WebScrollbar* scrollbar)
+{
+ return m_geometry->scrollbarThickness(scrollbar);
+}
+
+WebRect CCScrollbarGeometryStub::backButtonStartRect(WebScrollbar* scrollbar)
+{
+ return m_geometry->backButtonStartRect(scrollbar);
+}
+
+WebRect CCScrollbarGeometryStub::backButtonEndRect(WebScrollbar* scrollbar)
+{
+ return m_geometry->backButtonEndRect(scrollbar);
+}
+
+WebRect CCScrollbarGeometryStub::forwardButtonStartRect(WebScrollbar* scrollbar)
+{
+ return m_geometry->forwardButtonStartRect(scrollbar);
+}
+
+WebRect CCScrollbarGeometryStub::forwardButtonEndRect(WebScrollbar* scrollbar)
+{
+ return m_geometry->forwardButtonEndRect(scrollbar);
+}
+
+WebRect CCScrollbarGeometryStub::constrainTrackRectToTrackPieces(WebScrollbar* scrollbar, const WebRect& rect)
+{
+ return m_geometry->constrainTrackRectToTrackPieces(scrollbar, rect);
+}
+
+void CCScrollbarGeometryStub::splitTrack(WebScrollbar* scrollbar, const WebRect& unconstrainedTrackRect, WebRect& beforeThumbRect, WebRect& thumbRect, WebRect& afterThumbRect)
+{
+ m_geometry->splitTrack(scrollbar, unconstrainedTrackRect, beforeThumbRect, thumbRect, afterThumbRect);
+}
+
+}
« no previous file with comments | « cc/CCScrollbarGeometryStub.h ('k') | cc/CCScrollbarLayerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698