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

Unified Diff: ui/views/controls/scrollbar/bitmap_scroll_bar.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 | « ui/views/controls/scrollbar/base_scroll_bar_thumb.cc ('k') | ui/views/controls/single_split_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/scrollbar/bitmap_scroll_bar.cc
===================================================================
--- ui/views/controls/scrollbar/bitmap_scroll_bar.cc (revision 151406)
+++ ui/views/controls/scrollbar/bitmap_scroll_bar.cc (working copy)
@@ -57,13 +57,13 @@
virtual ~AutorepeatButton() {}
protected:
- virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE {
+ virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE {
Button::NotifyClick(event);
repeater_.Start();
return true;
}
- virtual void OnMouseReleased(const MouseEvent& event) OVERRIDE {
+ virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE {
OnMouseCaptureLost();
}
@@ -78,9 +78,9 @@
#elif defined(OS_LINUX)
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_thumb.cc ('k') | ui/views/controls/single_split_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698