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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_popup_contents_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/omnibox/omnibox_popup_contents_view.cc
===================================================================
--- chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc (revision 151406)
+++ chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc (working copy)
@@ -312,7 +312,7 @@
}
bool OmniboxPopupContentsView::OnMousePressed(
- const views::MouseEvent& event) {
+ const ui::MouseEvent& event) {
ignore_mouse_drag_ = false; // See comment on |ignore_mouse_drag_| in header.
if (event.IsLeftMouseButton() || event.IsMiddleMouseButton())
UpdateLineEvent(event, event.IsLeftMouseButton());
@@ -320,14 +320,14 @@
}
bool OmniboxPopupContentsView::OnMouseDragged(
- const views::MouseEvent& event) {
+ const ui::MouseEvent& event) {
if (event.IsLeftMouseButton() || event.IsMiddleMouseButton())
UpdateLineEvent(event, !ignore_mouse_drag_ && event.IsLeftMouseButton());
return true;
}
void OmniboxPopupContentsView::OnMouseReleased(
- const views::MouseEvent& event) {
+ const ui::MouseEvent& event) {
if (ignore_mouse_drag_) {
OnMouseCaptureLost();
return;
@@ -344,17 +344,17 @@
}
void OmniboxPopupContentsView::OnMouseMoved(
- const views::MouseEvent& event) {
+ const ui::MouseEvent& event) {
model_->SetHoveredLine(GetIndexForPoint(event.location()));
}
void OmniboxPopupContentsView::OnMouseEntered(
- const views::MouseEvent& event) {
+ const ui::MouseEvent& event) {
model_->SetHoveredLine(GetIndexForPoint(event.location()));
}
void OmniboxPopupContentsView::OnMouseExited(
- const views::MouseEvent& event) {
+ const ui::MouseEvent& event) {
model_->SetHoveredLine(OmniboxPopupModel::kNoMatch);
}
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h ('k') | chrome/browser/ui/views/omnibox/omnibox_view_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698