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

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: 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
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 30 matching lines...) Expand all
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 { 50 namespace keyboard {
51 class KeyboardController; 51 class KeyboardController;
sadrul 2014/03/31 18:44:10 You can remove this now.
kevers 2014/04/01 15:57:10 Done.
52 } 52 }
53 53
54 namespace ui { 54 namespace ui {
55 class Layer; 55 class Layer;
56 class OutputConfigurator; 56 class OutputConfigurator;
57 } 57 }
58 namespace views { 58 namespace views {
59 class NonClientFrameView; 59 class NonClientFrameView;
60 class Widget; 60 class Widget;
61 namespace corewm { 61 namespace corewm {
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // Adds/removes observer. 322 // Adds/removes observer.
323 void AddShellObserver(ShellObserver* observer); 323 void AddShellObserver(ShellObserver* observer);
324 void RemoveShellObserver(ShellObserver* observer); 324 void RemoveShellObserver(ShellObserver* observer);
325 325
326 // Turn the always maximize mode window manager on or off. 326 // Turn the always maximize mode window manager on or off.
327 void EnableMaximizeModeWindowManager(bool enable); 327 void EnableMaximizeModeWindowManager(bool enable);
328 328
329 // Test if the MaximizeModeWindowManager is enabled or not. 329 // Test if the MaximizeModeWindowManager is enabled or not.
330 bool IsMaximizeModeWindowManagerEnabled(); 330 bool IsMaximizeModeWindowManagerEnabled();
331 331
332 keyboard::KeyboardController* keyboard_controller() {
333 return keyboard_controller_.get();
334 }
335
336 AcceleratorController* accelerator_controller() { 332 AcceleratorController* accelerator_controller() {
337 return accelerator_controller_.get(); 333 return accelerator_controller_.get();
338 } 334 }
339 335
340 internal::DisplayManager* display_manager() { 336 internal::DisplayManager* display_manager() {
341 return display_manager_.get(); 337 return display_manager_.get();
342 } 338 }
343 ::wm::InputMethodEventFilter* input_method_filter() { 339 ::wm::InputMethodEventFilter* input_method_filter() {
344 return input_method_filter_.get(); 340 return input_method_filter_.get();
345 } 341 }
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 // |target_root_window_| never becomes NULL during the session. 610 // |target_root_window_| never becomes NULL during the session.
615 aura::Window* target_root_window_; 611 aura::Window* target_root_window_;
616 aura::Window* scoped_target_root_window_; 612 aura::Window* scoped_target_root_window_;
617 613
618 // The CompoundEventFilter owned by aura::Env object. 614 // The CompoundEventFilter owned by aura::Env object.
619 scoped_ptr< ::wm::CompoundEventFilter> env_filter_; 615 scoped_ptr< ::wm::CompoundEventFilter> env_filter_;
620 616
621 std::vector<WindowAndBoundsPair> to_restore_; 617 std::vector<WindowAndBoundsPair> to_restore_;
622 618
623 scoped_ptr<UserMetricsRecorder> user_metrics_recorder_; 619 scoped_ptr<UserMetricsRecorder> user_metrics_recorder_;
624 scoped_ptr<keyboard::KeyboardController> keyboard_controller_;
625 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_; 620 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_;
626 scoped_ptr<AcceleratorController> accelerator_controller_; 621 scoped_ptr<AcceleratorController> accelerator_controller_;
627 scoped_ptr<ShellDelegate> delegate_; 622 scoped_ptr<ShellDelegate> delegate_;
628 scoped_ptr<SystemTrayDelegate> system_tray_delegate_; 623 scoped_ptr<SystemTrayDelegate> system_tray_delegate_;
629 scoped_ptr<SystemTrayNotifier> system_tray_notifier_; 624 scoped_ptr<SystemTrayNotifier> system_tray_notifier_;
630 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_; 625 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_;
631 scoped_ptr<SessionStateDelegate> session_state_delegate_; 626 scoped_ptr<SessionStateDelegate> session_state_delegate_;
632 scoped_ptr<AccessibilityDelegate> accessibility_delegate_; 627 scoped_ptr<AccessibilityDelegate> accessibility_delegate_;
633 scoped_ptr<NewWindowDelegate> new_window_delegate_; 628 scoped_ptr<NewWindowDelegate> new_window_delegate_;
634 scoped_ptr<MediaDelegate> media_delegate_; 629 scoped_ptr<MediaDelegate> media_delegate_;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 737
743 // Injected content::GPUDataManager support. 738 // Injected content::GPUDataManager support.
744 scoped_ptr<GPUSupport> gpu_support_; 739 scoped_ptr<GPUSupport> gpu_support_;
745 740
746 DISALLOW_COPY_AND_ASSIGN(Shell); 741 DISALLOW_COPY_AND_ASSIGN(Shell);
747 }; 742 };
748 743
749 } // namespace ash 744 } // namespace ash
750 745
751 #endif // ASH_SHELL_H_ 746 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shell.cc » ('j') | ui/keyboard/keyboard_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698