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

Unified Diff: ui/views/controls/scrollbar/base_scroll_bar_button.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_button.cc
===================================================================
--- ui/views/controls/scrollbar/base_scroll_bar_button.cc (revision 151406)
+++ ui/views/controls/scrollbar/base_scroll_bar_button.cc (working copy)
@@ -20,13 +20,13 @@
BaseScrollBarButton::~BaseScrollBarButton() {
}
-bool BaseScrollBarButton::OnMousePressed(const MouseEvent& event) {
+bool BaseScrollBarButton::OnMousePressed(const ui::MouseEvent& event) {
Button::NotifyClick(event);
repeater_.Start();
return true;
}
-void BaseScrollBarButton::OnMouseReleased(const MouseEvent& event) {
+void BaseScrollBarButton::OnMouseReleased(const ui::MouseEvent& event) {
OnMouseCaptureLost();
}
@@ -41,9 +41,9 @@
#else
gfx::Point cursor_point = gfx::Screen::GetCursorScreenPoint();
#endif
- views::MouseEvent event(ui::ET_MOUSE_RELEASED,
- cursor_point.x(), cursor_point.y(),
- ui::EF_LEFT_MOUSE_BUTTON);
+ ui::MouseEvent event(ui::ET_MOUSE_RELEASED,
+ cursor_point, cursor_point,
+ ui::EF_LEFT_MOUSE_BUTTON);
Button::NotifyClick(event);
}
« no previous file with comments | « ui/views/controls/scrollbar/base_scroll_bar_button.h ('k') | ui/views/controls/scrollbar/base_scroll_bar_thumb.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698