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

Unified Diff: ash/wm/workspace/multi_window_resize_controller.cc

Issue 10832282: Replace views::MouseEvent with ui::MouseEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « ash/wm/workspace/frame_maximize_button.cc ('k') | chrome/browser/chromeos/input_method/candidate_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/multi_window_resize_controller.cc
===================================================================
--- ash/wm/workspace/multi_window_resize_controller.cc (revision 151406)
+++ ash/wm/workspace/multi_window_resize_controller.cc (working copy)
@@ -79,26 +79,26 @@
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {
canvas->DrawImageInt(*image_, 0, 0);
}
- virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE {
+ virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE {
gfx::Point location(event.location());
views::View::ConvertPointToScreen(this, &location);
controller_->StartResize(location);
return true;
}
- virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE {
+ virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE {
gfx::Point location(event.location());
views::View::ConvertPointToScreen(this, &location);
controller_->Resize(location, event.flags());
return true;
}
- virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE {
+ virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE {
controller_->CompleteResize(event.flags());
}
virtual void OnMouseCaptureLost() OVERRIDE {
controller_->CancelResize();
}
virtual gfx::NativeCursor GetCursor(
- const views::MouseEvent& event) OVERRIDE {
+ const ui::MouseEvent& event) OVERRIDE {
int component = (direction_ == LEFT_RIGHT) ? HTRIGHT : HTBOTTOM;
return aura::shared::CompoundEventFilter::CursorForWindowComponent(
component);
« no previous file with comments | « ash/wm/workspace/frame_maximize_button.cc ('k') | chrome/browser/chromeos/input_method/candidate_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698