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

Side by Side Diff: chrome/browser/ui/views/ash/tab_scrubber.cc

Issue 674273002: Cleanup: Remove unneeded chrome/common/pref_names.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/ash/tab_scrubber.h" 5 #include "chrome/browser/ui/views/ash/tab_scrubber.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/wm/window_util.h" 8 #include "ash/wm/window_util.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
11 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/ui/browser_finder.h" 12 #include "chrome/browser/ui/browser_finder.h"
13 #include "chrome/browser/ui/tabs/tab_strip_model.h" 13 #include "chrome/browser/ui/tabs/tab_strip_model.h"
14 #include "chrome/browser/ui/views/frame/browser_view.h" 14 #include "chrome/browser/ui/views/frame/browser_view.h"
15 #include "chrome/browser/ui/views/tabs/tab.h" 15 #include "chrome/browser/ui/views/tabs/tab.h"
16 #include "chrome/browser/ui/views/tabs/tab_strip.h" 16 #include "chrome/browser/ui/views/tabs/tab_strip.h"
17 #include "chrome/common/pref_names.h"
18 #include "content/public/browser/notification_service.h" 17 #include "content/public/browser/notification_service.h"
19 #include "content/public/browser/notification_source.h" 18 #include "content/public/browser/notification_source.h"
20 #include "ui/aura/window.h" 19 #include "ui/aura/window.h"
21 #include "ui/events/event.h" 20 #include "ui/events/event.h"
22 #include "ui/events/event_utils.h" 21 #include "ui/events/event_utils.h"
23 #include "ui/events/gesture_detection/gesture_configuration.h" 22 #include "ui/events/gesture_detection/gesture_configuration.h"
24 #include "ui/views/controls/glow_hover_controller.h" 23 #include "ui/views/controls/glow_hover_controller.h"
25 24
26 namespace { 25 namespace {
27 const int64 kActivationDelayMS = 200; 26 const int64 kActivationDelayMS = 200;
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 UMA_HISTOGRAM_CUSTOM_COUNTS("Tabs.ScrubDistance", distance, 0, 20, 21); 277 UMA_HISTOGRAM_CUSTOM_COUNTS("Tabs.ScrubDistance", distance, 0, 20, 21);
279 browser_->tab_strip_model()->ActivateTabAt(highlighted_tab_, true); 278 browser_->tab_strip_model()->ActivateTabAt(highlighted_tab_, true);
280 } 279 }
281 tab_strip->RemoveObserver(this); 280 tab_strip->RemoveObserver(this);
282 } 281 }
283 swipe_x_ = -1; 282 swipe_x_ = -1;
284 swipe_y_ = -1; 283 swipe_y_ = -1;
285 scrubbing_ = false; 284 scrubbing_ = false;
286 highlighted_tab_ = -1; 285 highlighted_tab_ = -1;
287 } 286 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698