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

Unified Diff: ui/views/widget/widget.cc

Issue 6541030: View API/implementation cleanup:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | « ui/views/widget/root_view_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.cc
===================================================================
--- ui/views/widget/widget.cc (revision 75141)
+++ ui/views/widget/widget.cc (working copy)
@@ -161,7 +161,7 @@
bool Widget::OnMouseEvent(const MouseEvent& event) {
last_mouse_event_was_move_ = false;
switch (event.type()) {
- case ui::ET_MOUSE_PRESSED:
+ case ui::Event::ET_MOUSE_PRESSED:
if (root_view_->OnMousePressed(event)) {
is_mouse_button_pressed_ = true;
if (!native_widget_->HasMouseCapture())
@@ -169,7 +169,7 @@
return true;
}
return false;
- case ui::ET_MOUSE_RELEASED:
+ case ui::Event::ET_MOUSE_RELEASED:
// TODO(beng): NativeWidgetGtk should not call this function if drag data
// exists, see comment in this function in WidgetGtk.
// Release the capture first, that way we don't get confused if
@@ -181,13 +181,13 @@
is_mouse_button_pressed_ = false;
root_view_->OnMouseReleased(event);
return true;
- case ui::ET_MOUSE_MOVED:
+ case ui::Event::ET_MOUSE_MOVED:
if (native_widget_->HasMouseCapture() && is_mouse_button_pressed_) {
last_mouse_event_was_move_ = false;
root_view_->OnMouseDragged(event);
} else {
gfx::Point screen_loc(event.location());
- View::ConvertPointToScreen(root_view_.get(), &screen_loc);
+ View::ConvertPointToScreen(*root_view_, &screen_loc);
if (last_mouse_event_was_move_ &&
last_mouse_event_position_ == screen_loc) {
// Don't generate a mouse event for the same location as the last.
@@ -198,7 +198,7 @@
root_view_->OnMouseMoved(event);
}
break;
- case ui::ET_MOUSE_EXITED:
+ case ui::Event::ET_MOUSE_EXITED:
root_view_->OnMouseExited(event);
return true;
}
« no previous file with comments | « ui/views/widget/root_view_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698