mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1083398 - Sprinkle some const keywords around. r=botond
This commit is contained in:
parent
e6a9ddaca8
commit
a796db47c5
@ -1776,7 +1776,7 @@ ScreenPoint AsyncPanZoomController::PanStart() const {
|
||||
return ScreenPoint(mX.PanStart(), mY.PanStart());
|
||||
}
|
||||
|
||||
const ScreenPoint AsyncPanZoomController::GetVelocityVector() {
|
||||
const ScreenPoint AsyncPanZoomController::GetVelocityVector() const {
|
||||
return ScreenPoint(mX.GetVelocity(), mY.GetVelocity());
|
||||
}
|
||||
|
||||
|
@ -491,7 +491,7 @@ protected:
|
||||
/**
|
||||
* Gets a vector of the velocities of each axis.
|
||||
*/
|
||||
const ScreenPoint GetVelocityVector();
|
||||
const ScreenPoint GetVelocityVector() const;
|
||||
|
||||
/**
|
||||
* Gets the first touch point from a MultiTouchInput. This gets only
|
||||
|
@ -320,7 +320,7 @@ CSSCoord Axis::ScaleWillOverscrollAmount(float aScale, CSSCoord aFocus) const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
float Axis::GetVelocity() {
|
||||
float Axis::GetVelocity() const {
|
||||
return mAxisLocked ? 0 : mVelocity;
|
||||
}
|
||||
|
||||
|
@ -151,7 +151,7 @@ public:
|
||||
/**
|
||||
* Gets the raw velocity of this axis at this moment.
|
||||
*/
|
||||
float GetVelocity();
|
||||
float GetVelocity() const;
|
||||
|
||||
/**
|
||||
* Sets the raw velocity of this axis at this moment.
|
||||
|
Loading…
Reference in New Issue
Block a user