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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.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: Created 5 years, 7 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_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "ui/aura/client/focus_change_observer.h" 9 #include "ui/aura/client/focus_change_observer.h"
10 #include "ui/aura/window_delegate.h" 10 #include "ui/aura/window_delegate.h"
11 #include "ui/aura/window_tree_host_observer.h" 11 #include "ui/aura/window_tree_host_observer.h"
12 #include "ui/base/cursor/cursor.h" 12 #include "ui/base/cursor/cursor.h"
13 #include "ui/views/ime/input_method_delegate.h" 13 #include "ui/views/ime/input_method_delegate.h"
14 #include "ui/views/widget/native_widget_private.h" 14 #include "ui/views/widget/native_widget_private.h"
15 #include "ui/wm/core/compound_event_filter.h" 15 #include "ui/wm/core/compound_event_filter.h"
16 #include "ui/wm/public/activation_change_observer.h" 16 #include "ui/wm/public/activation_change_observer.h"
17 #include "ui/wm/public/activation_delegate.h" 17 #include "ui/wm/public/activation_delegate.h"
18 #include "ui/wm/public/drag_drop_delegate.h" 18 #include "ui/wm/public/drag_drop_delegate.h"
19 19
20 namespace aura { 20 namespace aura {
21 class WindowEventDispatcher; 21 class WindowEventDispatcher;
22 class WindowTreeHost; 22 class WindowTreeHost;
23 namespace client { 23 namespace client {
24 class DragDropClient; 24 class DragDropClient;
25 class FocusClient; 25 class FocusClient;
26 class ScreenPositionClient; 26 class ScreenPositionClient;
27 class WindowTreeClient; 27 class WindowTreeClient;
28 } 28 } // namespace client
29 } 29 } // namespace aura
30 30
31 namespace wm { 31 namespace wm {
32 class CompoundEventFilter; 32 class CompoundEventFilter;
33 class CursorManager; 33 class CursorManager;
34 class FocusController; 34 class FocusController;
35 class InputMethodEventFilter; 35 class InputMethodEventFilter;
36 class ShadowController; 36 class ShadowController;
37 class VisibilityController; 37 class VisibilityController;
38 class WindowActivationPreTargetHandler;
38 class WindowModalityController; 39 class WindowModalityController;
39 } 40 } // namespace wm
40 41
41 namespace views { 42 namespace views {
42 namespace corewm { 43 namespace corewm {
43 class TooltipController; 44 class TooltipController;
44 } 45 } // namespace corewm
45 class DesktopCaptureClient; 46 class DesktopCaptureClient;
46 class DesktopDispatcherClient; 47 class DesktopDispatcherClient;
47 class DesktopEventClient; 48 class DesktopEventClient;
48 class DesktopNativeCursorManager; 49 class DesktopNativeCursorManager;
49 class DesktopWindowTreeHost; 50 class DesktopWindowTreeHost;
50 class DropHelper; 51 class DropHelper;
51 class FocusManagerEventHandler; 52 class FocusManagerEventHandler;
52 class TooltipManagerAura; 53 class TooltipManagerAura;
53 class WindowReorderer; 54 class WindowReorderer;
54 55
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // Child of the root, contains |content_window_|. 260 // Child of the root, contains |content_window_|.
260 aura::Window* content_window_container_; 261 aura::Window* content_window_container_;
261 262
262 // Child of |content_window_container_|. This is the return value from 263 // Child of |content_window_container_|. This is the return value from
263 // GetNativeView(). 264 // GetNativeView().
264 // WARNING: this may be NULL, in particular during shutdown it becomes NULL. 265 // WARNING: this may be NULL, in particular during shutdown it becomes NULL.
265 aura::Window* content_window_; 266 aura::Window* content_window_;
266 267
267 internal::NativeWidgetDelegate* native_widget_delegate_; 268 internal::NativeWidgetDelegate* native_widget_delegate_;
268 269
270 scoped_ptr<wm::WindowActivationPreTargetHandler>
271 window_activation_pretarget_handler_;
269 scoped_ptr<wm::FocusController> focus_client_; 272 scoped_ptr<wm::FocusController> focus_client_;
270 scoped_ptr<DesktopDispatcherClient> dispatcher_client_; 273 scoped_ptr<DesktopDispatcherClient> dispatcher_client_;
271 scoped_ptr<aura::client::ScreenPositionClient> position_client_; 274 scoped_ptr<aura::client::ScreenPositionClient> position_client_;
272 scoped_ptr<aura::client::DragDropClient> drag_drop_client_; 275 scoped_ptr<aura::client::DragDropClient> drag_drop_client_;
273 scoped_ptr<aura::client::WindowTreeClient> window_tree_client_; 276 scoped_ptr<aura::client::WindowTreeClient> window_tree_client_;
274 scoped_ptr<DesktopEventClient> event_client_; 277 scoped_ptr<DesktopEventClient> event_client_;
275 scoped_ptr<FocusManagerEventHandler> focus_manager_event_handler_; 278 scoped_ptr<FocusManagerEventHandler> focus_manager_event_handler_;
276 279
277 // Toplevel event filter which dispatches to other event filters. 280 // Toplevel event filter which dispatches to other event filters.
278 scoped_ptr<wm::CompoundEventFilter> root_window_event_filter_; 281 scoped_ptr<wm::CompoundEventFilter> root_window_event_filter_;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // The following factory is used for calls to close the NativeWidgetAura 318 // The following factory is used for calls to close the NativeWidgetAura
316 // instance. 319 // instance.
317 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; 320 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_;
318 321
319 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 322 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
320 }; 323 };
321 324
322 } // namespace views 325 } // namespace views
323 326
324 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 327 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698