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

Side by Side Diff: ash/shell.h

Issue 219503003: Make keyboard controller a singleton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix root window controller unittets. Created 6 years, 8 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/root_window_controller_unittest.cc ('k') | ash/shell.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 (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_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 class FocusClient; 40 class FocusClient;
41 } 41 }
42 } 42 }
43 43
44 namespace gfx { 44 namespace gfx {
45 class ImageSkia; 45 class ImageSkia;
46 class Point; 46 class Point;
47 class Rect; 47 class Rect;
48 } 48 }
49 49
50 namespace keyboard {
51 class KeyboardController;
52 }
53
54 namespace ui { 50 namespace ui {
55 class Layer; 51 class Layer;
56 class OutputConfigurator; 52 class OutputConfigurator;
57 } 53 }
58 namespace views { 54 namespace views {
59 class NonClientFrameView; 55 class NonClientFrameView;
60 class Widget; 56 class Widget;
61 namespace corewm { 57 namespace corewm {
62 class TooltipController; 58 class TooltipController;
63 } 59 }
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // Adds/removes observer. 317 // Adds/removes observer.
322 void AddShellObserver(ShellObserver* observer); 318 void AddShellObserver(ShellObserver* observer);
323 void RemoveShellObserver(ShellObserver* observer); 319 void RemoveShellObserver(ShellObserver* observer);
324 320
325 // Turn the always maximize mode window manager on or off. 321 // Turn the always maximize mode window manager on or off.
326 void EnableMaximizeModeWindowManager(bool enable); 322 void EnableMaximizeModeWindowManager(bool enable);
327 323
328 // Test if the MaximizeModeWindowManager is enabled or not. 324 // Test if the MaximizeModeWindowManager is enabled or not.
329 bool IsMaximizeModeWindowManagerEnabled(); 325 bool IsMaximizeModeWindowManagerEnabled();
330 326
331 keyboard::KeyboardController* keyboard_controller() {
332 return keyboard_controller_.get();
333 }
334
335 AcceleratorController* accelerator_controller() { 327 AcceleratorController* accelerator_controller() {
336 return accelerator_controller_.get(); 328 return accelerator_controller_.get();
337 } 329 }
338 330
339 DisplayManager* display_manager() { return display_manager_.get(); } 331 DisplayManager* display_manager() { return display_manager_.get(); }
340 ::wm::InputMethodEventFilter* input_method_filter() { 332 ::wm::InputMethodEventFilter* input_method_filter() {
341 return input_method_filter_.get(); 333 return input_method_filter_.get();
342 } 334 }
343 ::wm::CompoundEventFilter* env_filter() { 335 ::wm::CompoundEventFilter* env_filter() {
344 return env_filter_.get(); 336 return env_filter_.get();
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 // |target_root_window_| never becomes NULL during the session. 604 // |target_root_window_| never becomes NULL during the session.
613 aura::Window* target_root_window_; 605 aura::Window* target_root_window_;
614 aura::Window* scoped_target_root_window_; 606 aura::Window* scoped_target_root_window_;
615 607
616 // The CompoundEventFilter owned by aura::Env object. 608 // The CompoundEventFilter owned by aura::Env object.
617 scoped_ptr< ::wm::CompoundEventFilter> env_filter_; 609 scoped_ptr< ::wm::CompoundEventFilter> env_filter_;
618 610
619 std::vector<WindowAndBoundsPair> to_restore_; 611 std::vector<WindowAndBoundsPair> to_restore_;
620 612
621 scoped_ptr<UserMetricsRecorder> user_metrics_recorder_; 613 scoped_ptr<UserMetricsRecorder> user_metrics_recorder_;
622 scoped_ptr<keyboard::KeyboardController> keyboard_controller_;
623 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_; 614 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_;
624 scoped_ptr<AcceleratorController> accelerator_controller_; 615 scoped_ptr<AcceleratorController> accelerator_controller_;
625 scoped_ptr<ShellDelegate> delegate_; 616 scoped_ptr<ShellDelegate> delegate_;
626 scoped_ptr<SystemTrayDelegate> system_tray_delegate_; 617 scoped_ptr<SystemTrayDelegate> system_tray_delegate_;
627 scoped_ptr<SystemTrayNotifier> system_tray_notifier_; 618 scoped_ptr<SystemTrayNotifier> system_tray_notifier_;
628 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_; 619 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_;
629 scoped_ptr<SessionStateDelegate> session_state_delegate_; 620 scoped_ptr<SessionStateDelegate> session_state_delegate_;
630 scoped_ptr<AccessibilityDelegate> accessibility_delegate_; 621 scoped_ptr<AccessibilityDelegate> accessibility_delegate_;
631 scoped_ptr<NewWindowDelegate> new_window_delegate_; 622 scoped_ptr<NewWindowDelegate> new_window_delegate_;
632 scoped_ptr<MediaDelegate> media_delegate_; 623 scoped_ptr<MediaDelegate> media_delegate_;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 731
741 // Injected content::GPUDataManager support. 732 // Injected content::GPUDataManager support.
742 scoped_ptr<GPUSupport> gpu_support_; 733 scoped_ptr<GPUSupport> gpu_support_;
743 734
744 DISALLOW_COPY_AND_ASSIGN(Shell); 735 DISALLOW_COPY_AND_ASSIGN(Shell);
745 }; 736 };
746 737
747 } // namespace ash 738 } // namespace ash
748 739
749 #endif // ASH_SHELL_H_ 740 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/root_window_controller_unittest.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698