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

Unified Diff: ash/tooltips/tooltip_controller.cc

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderText fixup Created 8 years, 2 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
Index: ash/tooltips/tooltip_controller.cc
diff --git a/ash/tooltips/tooltip_controller.cc b/ash/tooltips/tooltip_controller.cc
index 45c4785c081f034c93ce8c86c013bb5c6f1490fa..0449645587b1b1512a4e45a56bfc486c5ceaae1c 100644
--- a/ash/tooltips/tooltip_controller.cc
+++ b/ash/tooltips/tooltip_controller.cc
@@ -450,9 +450,8 @@ void TooltipController::UpdateIfRequired() {
GetTooltip()->Hide();
} else {
string16 tooltip_text(tooltip_text_);
- gfx::Point widget_loc = curr_mouse_loc_;
- widget_loc = widget_loc.Add(
- tooltip_window_->GetBoundsInScreen().origin());
+ gfx::Point widget_loc = curr_mouse_loc_.Add(
+ tooltip_window_->GetBoundsInScreen().OffsetFromOrigin());
GetTooltip()->SetText(tooltip_text, widget_loc);
GetTooltip()->Show();
tooltip_shown_timer_.Start(FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698