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

Side by Side Diff: ui/wm/core/shadow_controller.h

Issue 1153633006: Added UMA statistics for changing the active window via click or touch events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reworked approach to use the an ActivationChangeObserver. Created 5 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
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 #ifndef UI_WM_CORE_SHADOW_CONTROLLER_H_ 5 #ifndef UI_WM_CORE_SHADOW_CONTROLLER_H_
6 #define UI_WM_CORE_SHADOW_CONTROLLER_H_ 6 #define UI_WM_CORE_SHADOW_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 private: 44 private:
45 ShadowController* controller_; // not owned 45 ShadowController* controller_; // not owned
46 46
47 DISALLOW_COPY_AND_ASSIGN(TestApi); 47 DISALLOW_COPY_AND_ASSIGN(TestApi);
48 }; 48 };
49 49
50 explicit ShadowController(aura::client::ActivationClient* activation_client); 50 explicit ShadowController(aura::client::ActivationClient* activation_client);
51 ~ShadowController() override; 51 ~ShadowController() override;
52 52
53 // aura::client::ActivationChangeObserver overrides: 53 // aura::client::ActivationChangeObserver overrides:
54 void OnWindowActivated(aura::Window* gained_active, 54 void OnWindowActivated(
55 aura::Window* lost_active) override; 55 aura::client::ActivationChangeObserver::ActivationReason reason,
56 aura::Window* gained_active,
57 aura::Window* lost_active) override;
56 58
57 private: 59 private:
58 class Impl; 60 class Impl;
59 61
60 aura::client::ActivationClient* activation_client_; 62 aura::client::ActivationClient* activation_client_;
61 63
62 scoped_refptr<Impl> impl_; 64 scoped_refptr<Impl> impl_;
63 65
64 DISALLOW_COPY_AND_ASSIGN(ShadowController); 66 DISALLOW_COPY_AND_ASSIGN(ShadowController);
65 }; 67 };
66 68
67 } // namespace wm 69 } // namespace wm
68 70
69 #endif // UI_WM_CORE_SHADOW_CONTROLLER_H_ 71 #endif // UI_WM_CORE_SHADOW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698