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

Unified Diff: chrome/browser/ui/views/download/download_item_view.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: chrome/browser/ui/views/download/download_item_view.cc
===================================================================
--- chrome/browser/ui/views/download/download_item_view.cc (revision 151406)
+++ chrome/browser/ui/views/download/download_item_view.cc (working copy)
@@ -402,13 +402,13 @@
// Handle a mouse click and open the context menu if the mouse is
// over the drop-down region.
-bool DownloadItemView::OnMousePressed(const views::MouseEvent& event) {
+bool DownloadItemView::OnMousePressed(const ui::MouseEvent& event) {
HandlePressEvent(event, event.IsOnlyLeftMouseButton());
return true;
}
// Handle drag (file copy) operations.
-bool DownloadItemView::OnMouseDragged(const views::MouseEvent& event) {
+bool DownloadItemView::OnMouseDragged(const ui::MouseEvent& event) {
// Mouse should not activate us in dangerous mode.
if (IsShowingWarningDialog())
return true;
@@ -436,7 +436,7 @@
return true;
}
-void DownloadItemView::OnMouseReleased(const views::MouseEvent& event) {
+void DownloadItemView::OnMouseReleased(const ui::MouseEvent& event) {
HandleClickEvent(event, event.IsOnlyLeftMouseButton());
}
@@ -454,7 +454,7 @@
}
}
-void DownloadItemView::OnMouseMoved(const views::MouseEvent& event) {
+void DownloadItemView::OnMouseMoved(const ui::MouseEvent& event) {
// Mouse should not activate us in dangerous mode.
if (mode_ == DANGEROUS_MODE)
return;
@@ -472,7 +472,7 @@
}
}
-void DownloadItemView::OnMouseExited(const views::MouseEvent& event) {
+void DownloadItemView::OnMouseExited(const ui::MouseEvent& event) {
// Mouse should not activate us in dangerous mode.
if (mode_ == DANGEROUS_MODE)
return;

Powered by Google App Engine
This is Rietveld 408576698