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

Side by Side Diff: ash/wm/window_cycle_controller.h

Issue 320303002: Added UMA stats to overview mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed last nits. Created 6 years, 6 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
« no previous file with comments | « ash/wm/overview/window_selector_controller.cc ('k') | ash/wm/window_cycle_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef ASH_WM_WINDOW_CYCLE_CONTROLLER_H_ 5 #ifndef ASH_WM_WINDOW_CYCLE_CONTROLLER_H_
6 #define ASH_WM_WINDOW_CYCLE_CONTROLLER_H_ 6 #define ASH_WM_WINDOW_CYCLE_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/time/time.h"
11 12
12 namespace ui { 13 namespace ui {
13 class EventHandler; 14 class EventHandler;
14 } 15 }
15 16
16 namespace ash { 17 namespace ash {
17 18
18 class WindowCycleList; 19 class WindowCycleList;
19 20
20 // Controls cycling through windows with the keyboard via alt-tab. 21 // Controls cycling through windows with the keyboard via alt-tab.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 59
59 private: 60 private:
60 // Cycles to the next or previous window based on |direction|. 61 // Cycles to the next or previous window based on |direction|.
61 void Step(Direction direction); 62 void Step(Direction direction);
62 63
63 scoped_ptr<WindowCycleList> window_cycle_list_; 64 scoped_ptr<WindowCycleList> window_cycle_list_;
64 65
65 // Event handler to watch for release of alt key. 66 // Event handler to watch for release of alt key.
66 scoped_ptr<ui::EventHandler> event_handler_; 67 scoped_ptr<ui::EventHandler> event_handler_;
67 68
69 base::Time cycle_start_time_;
70
68 DISALLOW_COPY_AND_ASSIGN(WindowCycleController); 71 DISALLOW_COPY_AND_ASSIGN(WindowCycleController);
69 }; 72 };
70 73
71 } // namespace ash 74 } // namespace ash
72 75
73 #endif // ASH_WM_WINDOW_CYCLE_CONTROLLER_H_ 76 #endif // ASH_WM_WINDOW_CYCLE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/overview/window_selector_controller.cc ('k') | ash/wm/window_cycle_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698