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

Unified Diff: ui/views/controls/scrollbar/base_scroll_bar_thumb.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
Index: ui/views/controls/scrollbar/base_scroll_bar_thumb.cc
===================================================================
--- ui/views/controls/scrollbar/base_scroll_bar_thumb.cc (revision 151406)
+++ ui/views/controls/scrollbar/base_scroll_bar_thumb.cc (working copy)
@@ -65,22 +65,22 @@
return y() - track_bounds.y();
}
-void BaseScrollBarThumb::OnMouseEntered(const MouseEvent& event) {
+void BaseScrollBarThumb::OnMouseEntered(const ui::MouseEvent& event) {
SetState(CustomButton::BS_HOT);
}
-void BaseScrollBarThumb::OnMouseExited(const MouseEvent& event) {
+void BaseScrollBarThumb::OnMouseExited(const ui::MouseEvent& event) {
SetState(CustomButton::BS_NORMAL);
}
-bool BaseScrollBarThumb::OnMousePressed(const MouseEvent& event) {
+bool BaseScrollBarThumb::OnMousePressed(const ui::MouseEvent& event) {
mouse_offset_ = scroll_bar_->IsHorizontal() ? event.x() : event.y();
drag_start_position_ = GetPosition();
SetState(CustomButton::BS_PUSHED);
return true;
}
-bool BaseScrollBarThumb::OnMouseDragged(const MouseEvent& event) {
+bool BaseScrollBarThumb::OnMouseDragged(const ui::MouseEvent& event) {
// If the user moves the mouse more than |kScrollThumbDragOutSnap| outside
// the bounds of the thumb, the scrollbar will snap the scroll back to the
// point it was at before the drag began.
@@ -107,7 +107,7 @@
return true;
}
-void BaseScrollBarThumb::OnMouseReleased(const MouseEvent& event) {
+void BaseScrollBarThumb::OnMouseReleased(const ui::MouseEvent& event) {
OnMouseCaptureLost();
}
« no previous file with comments | « ui/views/controls/scrollbar/base_scroll_bar_thumb.h ('k') | ui/views/controls/scrollbar/bitmap_scroll_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698