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

Unified Diff: cc/input/pinch_zoom_scrollbar_geometry.cc

Issue 12965007: Fix cpplint errors in cc/(animation|input|layers|trees|test)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 9 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/input/pinch_zoom_scrollbar_geometry.h ('k') | cc/input/pinch_zoom_scrollbar_painter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/pinch_zoom_scrollbar_geometry.cc
diff --git a/cc/input/pinch_zoom_scrollbar_geometry.cc b/cc/input/pinch_zoom_scrollbar_geometry.cc
index 9f1dce9169cca6421d09cf9ec6e4716b69869afa..68c42b539f4087cba2f7bc6f9563702ca8ee90e0 100644
--- a/cc/input/pinch_zoom_scrollbar_geometry.cc
+++ b/cc/input/pinch_zoom_scrollbar_geometry.cc
@@ -4,6 +4,8 @@
#include "cc/input/pinch_zoom_scrollbar_geometry.h"
+#include <algorithm>
+
#include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h"
namespace cc {
@@ -42,7 +44,7 @@ int PinchZoomScrollbarGeometry::thumbLength(WebScrollbar* scrollbar) {
return length;
}
-int PinchZoomScrollbarGeometry::trackPosition(WebScrollbar*) {
+int PinchZoomScrollbarGeometry::trackPosition(WebScrollbar* scrollbar) {
return 0;
}
@@ -54,11 +56,11 @@ int PinchZoomScrollbarGeometry::trackLength(WebScrollbar* scrollbar) {
return track.height;
}
-bool PinchZoomScrollbarGeometry::hasButtons(WebScrollbar*) {
+bool PinchZoomScrollbarGeometry::hasButtons(WebScrollbar* scrollbar) {
return false;
}
-bool PinchZoomScrollbarGeometry::hasThumb(WebScrollbar*) {
+bool PinchZoomScrollbarGeometry::hasThumb(WebScrollbar* scrollbar) {
return true;
}
@@ -90,28 +92,31 @@ int PinchZoomScrollbarGeometry::minimumThumbLength(WebScrollbar* scrollbar) {
return scrollbarThickness(scrollbar);
}
-int PinchZoomScrollbarGeometry::scrollbarThickness(WebScrollbar*) {
+int PinchZoomScrollbarGeometry::scrollbarThickness(WebScrollbar* scrollbar) {
return kTrackWidth;
}
-WebRect PinchZoomScrollbarGeometry::backButtonStartRect(WebScrollbar*) {
+WebRect PinchZoomScrollbarGeometry::backButtonStartRect(
+ WebScrollbar* scrollbar) {
return WebRect();
}
-WebRect PinchZoomScrollbarGeometry::backButtonEndRect(WebScrollbar*) {
+WebRect PinchZoomScrollbarGeometry::backButtonEndRect(WebScrollbar* scrollbar) {
return WebRect();
}
-WebRect PinchZoomScrollbarGeometry::forwardButtonStartRect(WebScrollbar*) {
+WebRect PinchZoomScrollbarGeometry::forwardButtonStartRect(
+ WebScrollbar* scrollbar) {
return WebRect();
}
-WebRect PinchZoomScrollbarGeometry::forwardButtonEndRect(WebScrollbar*) {
+WebRect PinchZoomScrollbarGeometry::forwardButtonEndRect(
+ WebScrollbar* scrollbar) {
return WebRect();
}
WebRect PinchZoomScrollbarGeometry::constrainTrackRectToTrackPieces(
- WebScrollbar*, const WebRect& rect) {
+ WebScrollbar* scrollbar, const WebRect& rect) {
return rect;
}
@@ -123,4 +128,4 @@ void PinchZoomScrollbarGeometry::splitTrack(
end_track = WebRect();
}
-} // namespace cc
+} // namespace cc
« no previous file with comments | « cc/input/pinch_zoom_scrollbar_geometry.h ('k') | cc/input/pinch_zoom_scrollbar_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698