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

Side by Side Diff: ash/root_window_controller.h

Issue 114643003: Use a single ToplevelWindowEventHandler for the ash::Shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « no previous file | ash/root_window_controller.cc » ('j') | ash/shell.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ASH_ROOT_WINDOW_CONTROLLER_H_ 5 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_
6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ 6 #define ASH_ROOT_WINDOW_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 24 matching lines...) Expand all
35 class InputMethodEventFilter; 35 class InputMethodEventFilter;
36 class RootWindowEventFilter; 36 class RootWindowEventFilter;
37 class ScopedCaptureClient; 37 class ScopedCaptureClient;
38 } 38 }
39 } 39 }
40 40
41 namespace keyboard { 41 namespace keyboard {
42 class KeyboardController; 42 class KeyboardController;
43 } 43 }
44 44
45 namespace ui {
46 class EventHandler;
47 }
48
45 namespace ash { 49 namespace ash {
46 class ShelfWidget; 50 class ShelfWidget;
47 class SoloWindowTracker; 51 class SoloWindowTracker;
48 class StackingController; 52 class StackingController;
49 class SystemTray; 53 class SystemTray;
50 class ToplevelWindowEventHandler; 54 class ToplevelWindowEventHandler;
51 55
52 namespace internal { 56 namespace internal {
53 57
54 class AlwaysOnTopController; 58 class AlwaysOnTopController;
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 296
293 scoped_ptr<ScreenDimmer> screen_dimmer_; 297 scoped_ptr<ScreenDimmer> screen_dimmer_;
294 scoped_ptr<WorkspaceController> workspace_controller_; 298 scoped_ptr<WorkspaceController> workspace_controller_;
295 scoped_ptr<AlwaysOnTopController> always_on_top_controller_; 299 scoped_ptr<AlwaysOnTopController> always_on_top_controller_;
296 300
297 // Heads-up displays for touch events. These HUDs are not owned by the root 301 // Heads-up displays for touch events. These HUDs are not owned by the root
298 // window controller and manage their own lifetimes. 302 // window controller and manage their own lifetimes.
299 TouchHudDebug* touch_hud_debug_; 303 TouchHudDebug* touch_hud_debug_;
300 TouchHudProjection* touch_hud_projection_; 304 TouchHudProjection* touch_hud_projection_;
301 305
302 // We need to own event handlers for various containers. 306 // Handles events for the panel container.
303 scoped_ptr<ToplevelWindowEventHandler> default_container_handler_; 307 scoped_ptr<ui::EventHandler> panel_container_handler_;
304 scoped_ptr<ToplevelWindowEventHandler> always_on_top_container_handler_;
305 scoped_ptr<ToplevelWindowEventHandler> modal_container_handler_;
306 scoped_ptr<ToplevelWindowEventHandler> lock_modal_container_handler_;
307 scoped_ptr<ToplevelWindowEventHandler> panel_container_handler_;
308 scoped_ptr<ToplevelWindowEventHandler> docked_container_handler_;
309 308
310 scoped_ptr<DesktopBackgroundWidgetController> wallpaper_controller_; 309 scoped_ptr<DesktopBackgroundWidgetController> wallpaper_controller_;
311 scoped_ptr<AnimatingDesktopController> animating_wallpaper_controller_; 310 scoped_ptr<AnimatingDesktopController> animating_wallpaper_controller_;
312 scoped_ptr<views::corewm::ScopedCaptureClient> capture_client_; 311 scoped_ptr<views::corewm::ScopedCaptureClient> capture_client_;
313 scoped_ptr<SoloWindowTracker> solo_window_tracker_; 312 scoped_ptr<SoloWindowTracker> solo_window_tracker_;
314 313
315 DISALLOW_COPY_AND_ASSIGN(RootWindowController); 314 DISALLOW_COPY_AND_ASSIGN(RootWindowController);
316 }; 315 };
317 316
318 317
319 // Gets the RootWindowController for |root_window|. 318 // Gets the RootWindowController for |root_window|.
320 ASH_EXPORT RootWindowController* GetRootWindowController( 319 ASH_EXPORT RootWindowController* GetRootWindowController(
321 const aura::Window* root_window); 320 const aura::Window* root_window);
322 321
323 } // namespace internal 322 } // namespace internal
324 } // ash 323 } // ash
325 324
326 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ 325 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/root_window_controller.cc » ('j') | ash/shell.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698