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

Unified Diff: chrome/browser/ui/views/omnibox/inline_omnibox_popup_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/inline_omnibox_popup_view.cc
===================================================================
--- chrome/browser/ui/views/omnibox/inline_omnibox_popup_view.cc (revision 151406)
+++ chrome/browser/ui/views/omnibox/inline_omnibox_popup_view.cc (working copy)
@@ -238,7 +238,7 @@
}
bool InlineOmniboxPopupView::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());
@@ -246,14 +246,14 @@
}
bool InlineOmniboxPopupView::OnMouseDragged(
- const views::MouseEvent& event) {
+ const ui::MouseEvent& event) {
if (event.IsLeftMouseButton() || event.IsMiddleMouseButton())
UpdateLineEvent(event, !ignore_mouse_drag_ && event.IsLeftMouseButton());
return true;
}
void InlineOmniboxPopupView::OnMouseReleased(
- const views::MouseEvent& event) {
+ const ui::MouseEvent& event) {
if (ignore_mouse_drag_) {
OnMouseCaptureLost();
return;
@@ -270,17 +270,17 @@
}
void InlineOmniboxPopupView::OnMouseMoved(
- const views::MouseEvent& event) {
+ const ui::MouseEvent& event) {
model_->SetHoveredLine(GetIndexForPoint(event.location()));
}
void InlineOmniboxPopupView::OnMouseEntered(
- const views::MouseEvent& event) {
+ const ui::MouseEvent& event) {
model_->SetHoveredLine(GetIndexForPoint(event.location()));
}
void InlineOmniboxPopupView::OnMouseExited(
- const views::MouseEvent& event) {
+ const ui::MouseEvent& event) {
model_->SetHoveredLine(OmniboxPopupModel::kNoMatch);
}

Powered by Google App Engine
This is Rietveld 408576698