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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.cc

Issue 10827271: Replace views::Event with ui::Event. (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 | « chrome/browser/ui/views/tabs/tab_strip.h ('k') | chrome/browser/ui/views/task_manager_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_strip.cc
===================================================================
--- chrome/browser/ui/views/tabs/tab_strip.cc (revision 151055)
+++ chrome/browser/ui/views/tabs/tab_strip.cc (working copy)
@@ -737,7 +737,7 @@
// If the user closes the tab from a touch device don't wait for the mouse to
// move out of the tab strip (it may never happen).
// TODO: maybe we should use a delay on touch devices.
- const views::Event* event = GetWidget()->GetCurrentEvent();
+ const ui::Event* event = GetWidget()->GetCurrentEvent();
if (event && event->type() == ui::ET_MOUSE_RELEASED &&
event->flags() & ui::EF_FROM_TOUCH)
return;
@@ -1353,7 +1353,7 @@
///////////////////////////////////////////////////////////////////////////////
// TabStrip, views::ButtonListener implementation:
-void TabStrip::ButtonPressed(views::Button* sender, const views::Event& event) {
+void TabStrip::ButtonPressed(views::Button* sender, const ui::Event& event) {
if (sender == newtab_button_) {
content::RecordAction(UserMetricsAction("NewTab_Button"));
UMA_HISTOGRAM_ENUMERATION("Tab.NewTab", TabStripModel::NEW_TAB_BUTTON,
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.h ('k') | chrome/browser/ui/views/task_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698