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

Unified Diff: chrome/views/hwnd_view_container.cc

Issue 7317: Change all ConvertPointTo* methods to use gfx::Point instead of CPoint.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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
« no previous file with comments | « chrome/views/hwnd_view.cc ('k') | chrome/views/menu_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/hwnd_view_container.cc
===================================================================
--- chrome/views/hwnd_view_container.cc (revision 3347)
+++ chrome/views/hwnd_view_container.cc (working copy)
@@ -745,15 +745,15 @@
if (has_capture_ && is_mouse_down_) {
ProcessMouseDragged(point, flags);
} else {
- CPoint screen_loc = point;
+ gfx::Point screen_loc(point);
View::ConvertPointToScreen(root_view_.get(), &screen_loc);
- if (last_mouse_event_was_move_ && last_mouse_move_x_ == screen_loc.x &&
- last_mouse_move_y_ == screen_loc.y) {
+ if (last_mouse_event_was_move_ && last_mouse_move_x_ == screen_loc.x() &&
+ last_mouse_move_y_ == screen_loc.y()) {
// Don't generate a mouse event for the same location as the last.
return;
}
- last_mouse_move_x_ = screen_loc.x;
- last_mouse_move_y_ = screen_loc.y;
+ last_mouse_move_x_ = screen_loc.x();
+ last_mouse_move_y_ = screen_loc.y();
last_mouse_event_was_move_ = true;
MouseEvent mouse_move(Event::ET_MOUSE_MOVED,
point.x,
« no previous file with comments | « chrome/views/hwnd_view.cc ('k') | chrome/views/menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698