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

Unified Diff: chrome/browser/gtk/tabs/tab_gtk.cc

Issue 201091: Make implicit float -> int/long conversions explicit.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « chrome/browser/gtk/tabs/dragged_tab_gtk.cc ('k') | chrome/renderer/print_web_view_helper_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/tabs/tab_gtk.cc
===================================================================
--- chrome/browser/gtk/tabs/tab_gtk.cc (revision 25840)
+++ chrome/browser/gtk/tabs/tab_gtk.cc (working copy)
@@ -227,10 +227,14 @@
GdkEventMotion* motion = reinterpret_cast<GdkEventMotion*>(event);
GdkEventButton* button = reinterpret_cast<GdkEventButton*>(last_mouse_down_);
bool dragging = gtk_drag_check_threshold(widget(),
- button->x, button->y,
- motion->x, motion->y);
- if (dragging)
- StartDragging(gfx::Point(button->x, button->y));
+ static_cast<gint>(button->x),
+ static_cast<gint>(button->y),
+ static_cast<gint>(motion->x),
+ static_cast<gint>(motion->y));
+ if (dragging) {
+ StartDragging(gfx::Point(static_cast<int>(button->x),
+ static_cast<int>(button->y)));
+ }
}
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « chrome/browser/gtk/tabs/dragged_tab_gtk.cc ('k') | chrome/renderer/print_web_view_helper_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698