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

Side by Side Diff: ash/shell.h

Issue 11275139: Move ui\aura\shared to ui\views\corewm (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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.h ('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 15 matching lines...) Expand all
26 class CommandLine; 26 class CommandLine;
27 27
28 namespace aura { 28 namespace aura {
29 class EventFilter; 29 class EventFilter;
30 class FocusManager; 30 class FocusManager;
31 class RootWindow; 31 class RootWindow;
32 class Window; 32 class Window;
33 namespace client { 33 namespace client {
34 class UserActionClient; 34 class UserActionClient;
35 } 35 }
36 namespace shared {
37 class CompoundEventFilter;
38 class InputMethodEventFilter;
39 }
40 } 36 }
41 namespace chromeos { 37 namespace chromeos {
42 class OutputConfigurator; 38 class OutputConfigurator;
43 } 39 }
44 namespace content { 40 namespace content {
45 class BrowserContext; 41 class BrowserContext;
46 } 42 }
47 43
48 namespace gfx { 44 namespace gfx {
49 class ImageSkia; 45 class ImageSkia;
50 class Point; 46 class Point;
51 class Rect; 47 class Rect;
52 } 48 }
53 namespace ui { 49 namespace ui {
54 class Layer; 50 class Layer;
55 } 51 }
56 namespace views { 52 namespace views {
57 class NonClientFrameView; 53 class NonClientFrameView;
58 class Widget; 54 class Widget;
55 namespace corewm {
56 class CompoundEventFilter;
57 class InputMethodEventFilter;
58 }
59 } 59 }
60 60
61 namespace ash { 61 namespace ash {
62 62
63 class AcceleratorController; 63 class AcceleratorController;
64 class CapsLockDelegate; 64 class CapsLockDelegate;
65 class DesktopBackgroundController; 65 class DesktopBackgroundController;
66 class DisplayController; 66 class DisplayController;
67 class HighContrastController; 67 class HighContrastController;
68 class Launcher; 68 class Launcher;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 FORWARD, 125 FORWARD,
126 BACKWARD 126 BACKWARD
127 }; 127 };
128 128
129 // Accesses private data from a Shell for testing. 129 // Accesses private data from a Shell for testing.
130 class ASH_EXPORT TestApi { 130 class ASH_EXPORT TestApi {
131 public: 131 public:
132 explicit TestApi(Shell* shell); 132 explicit TestApi(Shell* shell);
133 133
134 internal::RootWindowLayoutManager* root_window_layout(); 134 internal::RootWindowLayoutManager* root_window_layout();
135 aura::shared::InputMethodEventFilter* input_method_event_filter(); 135 views::corewm::InputMethodEventFilter* input_method_event_filter();
136 internal::SystemGestureEventFilter* system_gesture_event_filter(); 136 internal::SystemGestureEventFilter* system_gesture_event_filter();
137 internal::WorkspaceController* workspace_controller(); 137 internal::WorkspaceController* workspace_controller();
138 internal::ScreenPositionController* screen_position_controller(); 138 internal::ScreenPositionController* screen_position_controller();
139 139
140 private: 140 private:
141 Shell* shell_; // not owned 141 Shell* shell_; // not owned
142 142
143 DISALLOW_COPY_AND_ASSIGN(TestApi); 143 DISALLOW_COPY_AND_ASSIGN(TestApi);
144 }; 144 };
145 145
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 // Adds/removes observer. 260 // Adds/removes observer.
261 void AddShellObserver(ShellObserver* observer); 261 void AddShellObserver(ShellObserver* observer);
262 void RemoveShellObserver(ShellObserver* observer); 262 void RemoveShellObserver(ShellObserver* observer);
263 263
264 #if !defined(OS_MACOSX) 264 #if !defined(OS_MACOSX)
265 AcceleratorController* accelerator_controller() { 265 AcceleratorController* accelerator_controller() {
266 return accelerator_controller_.get(); 266 return accelerator_controller_.get();
267 } 267 }
268 #endif // !defined(OS_MACOSX) 268 #endif // !defined(OS_MACOSX)
269 269
270 aura::shared::CompoundEventFilter* env_filter() { 270 views::corewm::CompoundEventFilter* env_filter() {
271 return env_filter_.get(); 271 return env_filter_.get();
272 } 272 }
273 internal::TooltipController* tooltip_controller() { 273 internal::TooltipController* tooltip_controller() {
274 return tooltip_controller_.get(); 274 return tooltip_controller_.get();
275 } 275 }
276 internal::EventRewriterEventFilter* event_rewriter_filter() { 276 internal::EventRewriterEventFilter* event_rewriter_filter() {
277 return event_rewriter_filter_.get(); 277 return event_rewriter_filter_.get();
278 } 278 }
279 internal::OverlayEventFilter* overlay_filter() { 279 internal::OverlayEventFilter* overlay_filter() {
280 return overlay_filter_.get(); 280 return overlay_filter_.get();
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 // If set before the Shell is initialized, the mouse cursor will be hidden 444 // If set before the Shell is initialized, the mouse cursor will be hidden
445 // when the screen is initially created. 445 // when the screen is initially created.
446 static bool initially_hide_cursor_; 446 static bool initially_hide_cursor_;
447 447
448 ScreenAsh* screen_; 448 ScreenAsh* screen_;
449 449
450 // Active root window. Never becomes NULL during the session. 450 // Active root window. Never becomes NULL during the session.
451 aura::RootWindow* active_root_window_; 451 aura::RootWindow* active_root_window_;
452 452
453 // The CompoundEventFilter owned by aura::Env object. 453 // The CompoundEventFilter owned by aura::Env object.
454 scoped_ptr<aura::shared::CompoundEventFilter> env_filter_; 454 scoped_ptr<views::corewm::CompoundEventFilter> env_filter_;
455 455
456 std::vector<WindowAndBoundsPair> to_restore_; 456 std::vector<WindowAndBoundsPair> to_restore_;
457 457
458 #if !defined(OS_MACOSX) 458 #if !defined(OS_MACOSX)
459 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_; 459 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_;
460 460
461 scoped_ptr<AcceleratorController> accelerator_controller_; 461 scoped_ptr<AcceleratorController> accelerator_controller_;
462 #endif // !defined(OS_MACOSX) 462 #endif // !defined(OS_MACOSX)
463 463
464 scoped_ptr<ShellDelegate> delegate_; 464 scoped_ptr<ShellDelegate> delegate_;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 503
504 // An event filter which handles system level gestures 504 // An event filter which handles system level gestures
505 scoped_ptr<internal::SystemGestureEventFilter> system_gesture_filter_; 505 scoped_ptr<internal::SystemGestureEventFilter> system_gesture_filter_;
506 506
507 #if !defined(OS_MACOSX) 507 #if !defined(OS_MACOSX)
508 // An event filter that pre-handles global accelerators. 508 // An event filter that pre-handles global accelerators.
509 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_; 509 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_;
510 #endif 510 #endif
511 511
512 // An event filter that pre-handles all key events to send them to an IME. 512 // An event filter that pre-handles all key events to send them to an IME.
513 scoped_ptr<aura::shared::InputMethodEventFilter> input_method_filter_; 513 scoped_ptr<views::corewm::InputMethodEventFilter> input_method_filter_;
514 514
515 // An event filter that silently keeps track of all touch events and controls 515 // An event filter that silently keeps track of all touch events and controls
516 // a heads-up display. This is enabled only if --ash-touch-hud flag is used. 516 // a heads-up display. This is enabled only if --ash-touch-hud flag is used.
517 scoped_ptr<internal::TouchObserverHUD> touch_observer_hud_; 517 scoped_ptr<internal::TouchObserverHUD> touch_observer_hud_;
518 518
519 #if defined(OS_CHROMEOS) 519 #if defined(OS_CHROMEOS)
520 // Controls video output device state. 520 // Controls video output device state.
521 scoped_ptr<chromeos::OutputConfigurator> output_configurator_; 521 scoped_ptr<chromeos::OutputConfigurator> output_configurator_;
522 scoped_ptr<internal::OutputConfiguratorAnimation> 522 scoped_ptr<internal::OutputConfiguratorAnimation>
523 output_configurator_animation_; 523 output_configurator_animation_;
524 #endif // defined(OS_CHROMEOS) 524 #endif // defined(OS_CHROMEOS)
525 525
526 CursorManager cursor_manager_; 526 CursorManager cursor_manager_;
527 527
528 ObserverList<ShellObserver> observers_; 528 ObserverList<ShellObserver> observers_;
529 529
530 // Used by ash/shell. 530 // Used by ash/shell.
531 content::BrowserContext* browser_context_; 531 content::BrowserContext* browser_context_;
532 532
533 // For testing only: simulate that a modal window is open 533 // For testing only: simulate that a modal window is open
534 bool simulate_modal_window_open_for_testing_; 534 bool simulate_modal_window_open_for_testing_;
535 535
536 DISALLOW_COPY_AND_ASSIGN(Shell); 536 DISALLOW_COPY_AND_ASSIGN(Shell);
537 }; 537 };
538 538
539 } // namespace ash 539 } // namespace ash
540 540
541 #endif // ASH_SHELL_H_ 541 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/root_window_controller.h ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698