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

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc

Issue 10824295: Rid the world of the last of views::Event types: TouchEvent, GestureEvent, MouseWheelEvent, ScrollE… (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h" 5 #include "chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h"
6 6
7 #include "chrome/browser/ui/omnibox/omnibox_view.h" 7 #include "chrome/browser/ui/omnibox/omnibox_view.h"
8 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" 8 #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
9 #include "chrome/browser/ui/views/omnibox/inline_omnibox_popup_view.h" 9 #include "chrome/browser/ui/views/omnibox/inline_omnibox_popup_view.h"
10 #include "chrome/browser/ui/views/omnibox/omnibox_result_view.h" 10 #include "chrome/browser/ui/views/omnibox/omnibox_result_view.h"
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 const ui::MouseEvent& event) { 352 const ui::MouseEvent& event) {
353 model_->SetHoveredLine(GetIndexForPoint(event.location())); 353 model_->SetHoveredLine(GetIndexForPoint(event.location()));
354 } 354 }
355 355
356 void OmniboxPopupContentsView::OnMouseExited( 356 void OmniboxPopupContentsView::OnMouseExited(
357 const ui::MouseEvent& event) { 357 const ui::MouseEvent& event) {
358 model_->SetHoveredLine(OmniboxPopupModel::kNoMatch); 358 model_->SetHoveredLine(OmniboxPopupModel::kNoMatch);
359 } 359 }
360 360
361 ui::GestureStatus OmniboxPopupContentsView::OnGestureEvent( 361 ui::GestureStatus OmniboxPopupContentsView::OnGestureEvent(
362 const views::GestureEvent& event) { 362 const ui::GestureEvent& event) {
363 switch (event.type()) { 363 switch (event.type()) {
364 case ui::ET_GESTURE_TAP_DOWN: 364 case ui::ET_GESTURE_TAP_DOWN:
365 case ui::ET_GESTURE_SCROLL_BEGIN: 365 case ui::ET_GESTURE_SCROLL_BEGIN:
366 case ui::ET_GESTURE_SCROLL_UPDATE: 366 case ui::ET_GESTURE_SCROLL_UPDATE:
367 UpdateLineEvent(event, true); 367 UpdateLineEvent(event, true);
368 break; 368 break;
369 case ui::ET_GESTURE_TAP: 369 case ui::ET_GESTURE_TAP:
370 case ui::ET_GESTURE_SCROLL_END: 370 case ui::ET_GESTURE_SCROLL_END:
371 OpenSelectedLine(event, CURRENT_TAB); 371 OpenSelectedLine(event, CURRENT_TAB);
372 break; 372 break;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 if (HasMatchAt(index) && should_set_selected_line) 548 if (HasMatchAt(index) && should_set_selected_line)
549 model_->SetSelectedLine(index, false, false); 549 model_->SetSelectedLine(index, false, false);
550 } 550 }
551 551
552 void OmniboxPopupContentsView::OpenSelectedLine( 552 void OmniboxPopupContentsView::OpenSelectedLine(
553 const ui::LocatedEvent& event, 553 const ui::LocatedEvent& event,
554 WindowOpenDisposition disposition) { 554 WindowOpenDisposition disposition) {
555 size_t index = GetIndexForPoint(event.location()); 555 size_t index = GetIndexForPoint(event.location());
556 OpenIndex(index, disposition); 556 OpenIndex(index, disposition);
557 } 557 }
OLDNEW
« 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