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

Side by Side Diff: ash/wm/overview/window_selector_controller.h

Issue 24096024: Add UMA metrics for window selection and overview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improve the wording of histogram descriptions and fix selection uma count. Created 7 years, 3 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
« no previous file with comments | « ash/wm/overview/window_selector.cc ('k') | ash/wm/overview/window_selector_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ 5 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_
6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
12 #include "ash/wm/overview/window_selector.h" 12 #include "ash/wm/overview/window_selector.h"
13 #include "ash/wm/overview/window_selector_delegate.h" 13 #include "ash/wm/overview/window_selector_delegate.h"
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/time/time.h"
16 #include "ui/aura/window_observer.h" 17 #include "ui/aura/window_observer.h"
17 18
18 namespace aura { 19 namespace aura {
19 class Window; 20 class Window;
20 } 21 }
21 22
22 namespace ash { 23 namespace ash {
23 24
24 namespace internal { 25 namespace internal {
25 class WindowSelectorTest; 26 class WindowSelectorTest;
(...skipping 26 matching lines...) Expand all
52 // Returns true if window selection mode is active. 53 // Returns true if window selection mode is active.
53 bool IsSelecting(); 54 bool IsSelecting();
54 55
55 // WindowSelectorDelegate: 56 // WindowSelectorDelegate:
56 virtual void OnWindowSelected(aura::Window* window) OVERRIDE; 57 virtual void OnWindowSelected(aura::Window* window) OVERRIDE;
57 virtual void OnSelectionCanceled() OVERRIDE; 58 virtual void OnSelectionCanceled() OVERRIDE;
58 59
59 private: 60 private:
60 friend class internal::WindowSelectorTest; 61 friend class internal::WindowSelectorTest;
61 62
63 // Dispatched when window selection begins.
64 void OnSelectionStarted();
65
62 scoped_ptr<WindowSelector> window_selector_; 66 scoped_ptr<WindowSelector> window_selector_;
67 base::Time last_selection_time_;
63 68
64 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController); 69 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController);
65 }; 70 };
66 71
67 } // namespace ash 72 } // namespace ash
68 73
69 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ 74 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/overview/window_selector.cc ('k') | ash/wm/overview/window_selector_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698