summaryrefslogtreecommitdiffstats
path: root/ash/tooltips
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-09 18:20:37 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-09 18:20:37 +0000
commit0872ffcfbc2e1dfdca3d1fbda5e3416c1214b4b4 (patch)
tree512901c50f52358af6030f2739636aefc9492388 /ash/tooltips
parent21eec7b3ced5a264f55c1c040ed6899ac58c97d5 (diff)
downloadchromium_src-0872ffcfbc2e1dfdca3d1fbda5e3416c1214b4b4.zip
chromium_src-0872ffcfbc2e1dfdca3d1fbda5e3416c1214b4b4.tar.gz
chromium_src-0872ffcfbc2e1dfdca3d1fbda5e3416c1214b4b4.tar.bz2
ui: Remove gfx::Point Add() and Subtract() which were non-mutating member methods.
Replace use of these with operator +, +=, -, -=. Covered by existing unit tests. R=sky BUG=158416,160158 Review URL: https://chromiumcodereview.appspot.com/11362173 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166933 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/tooltips')
-rw-r--r--ash/tooltips/tooltip_controller.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ash/tooltips/tooltip_controller.cc b/ash/tooltips/tooltip_controller.cc
index aa0290e..f9d053e7 100644
--- a/ash/tooltips/tooltip_controller.cc
+++ b/ash/tooltips/tooltip_controller.cc
@@ -459,8 +459,8 @@ void TooltipController::UpdateIfRequired() {
GetTooltip()->Hide();
} else {
string16 tooltip_text(tooltip_text_);
- gfx::Point widget_loc = curr_mouse_loc_.Add(
- tooltip_window_->GetBoundsInScreen().OffsetFromOrigin());
+ gfx::Point widget_loc = curr_mouse_loc_ +
+ tooltip_window_->GetBoundsInScreen().OffsetFromOrigin();
GetTooltip()->SetText(tooltip_text, widget_loc);
GetTooltip()->Show();
tooltip_shown_timer_.Start(FROM_HERE,