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

Side by Side Diff: ash/shell.h

Issue 2361563002: chromeos: Laser tool blocks events from propagating. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « ash/mus/bridge/wm_shell_mus.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 <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 class DisplayErrorObserver; 86 class DisplayErrorObserver;
87 class DisplayManager; 87 class DisplayManager;
88 class DragDropController; 88 class DragDropController;
89 class EventClientImpl; 89 class EventClientImpl;
90 class EventRewriterEventFilter; 90 class EventRewriterEventFilter;
91 class EventTransformationHandler; 91 class EventTransformationHandler;
92 class FirstRunHelper; 92 class FirstRunHelper;
93 class GPUSupport; 93 class GPUSupport;
94 class HighContrastController; 94 class HighContrastController;
95 class ImmersiveHandlerFactoryAsh; 95 class ImmersiveHandlerFactoryAsh;
96 class LaserPointerController;
96 class LinkHandlerModelFactory; 97 class LinkHandlerModelFactory;
97 class LocaleNotificationController; 98 class LocaleNotificationController;
98 class LockStateController; 99 class LockStateController;
99 enum class LoginStatus; 100 enum class LoginStatus;
100 class MagnificationController; 101 class MagnificationController;
101 class MouseCursorEventFilter; 102 class MouseCursorEventFilter;
102 class OverlayEventFilter; 103 class OverlayEventFilter;
103 class PartialMagnificationController; 104 class PartialMagnificationController;
104 class PowerButtonController; 105 class PowerButtonController;
105 class PowerEventObserver; 106 class PowerEventObserver;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 WindowTreeHostManager* window_tree_host_manager() { 296 WindowTreeHostManager* window_tree_host_manager() {
296 return window_tree_host_manager_.get(); 297 return window_tree_host_manager_.get();
297 } 298 }
298 #if defined(OS_CHROMEOS) 299 #if defined(OS_CHROMEOS)
299 PowerEventObserver* power_event_observer() { 300 PowerEventObserver* power_event_observer() {
300 return power_event_observer_.get(); 301 return power_event_observer_.get();
301 } 302 }
302 TouchTransformerController* touch_transformer_controller() { 303 TouchTransformerController* touch_transformer_controller() {
303 return touch_transformer_controller_.get(); 304 return touch_transformer_controller_.get();
304 } 305 }
306 LaserPointerController* laser_pointer_controller() {
307 return laser_pointer_controller_.get();
308 }
309 PartialMagnificationController* partial_magnification_controller() {
310 return partial_magnification_controller_.get();
311 }
305 #endif // defined(OS_CHROMEOS) 312 #endif // defined(OS_CHROMEOS)
306 ScreenshotController* screenshot_controller() { 313 ScreenshotController* screenshot_controller() {
307 return screenshot_controller_.get(); 314 return screenshot_controller_.get();
308 } 315 }
309 MouseCursorEventFilter* mouse_cursor_filter() { 316 MouseCursorEventFilter* mouse_cursor_filter() {
310 return mouse_cursor_filter_.get(); 317 return mouse_cursor_filter_.get();
311 } 318 }
312 EventTransformationHandler* event_transformation_handler() { 319 EventTransformationHandler* event_transformation_handler() {
313 return event_transformation_handler_.get(); 320 return event_transformation_handler_.get();
314 } 321 }
315 ::wm::CursorManager* cursor_manager() { return cursor_manager_.get(); } 322 ::wm::CursorManager* cursor_manager() { return cursor_manager_.get(); }
316 323
317 SessionStateDelegate* session_state_delegate() { 324 SessionStateDelegate* session_state_delegate() {
318 return session_state_delegate_.get(); 325 return session_state_delegate_.get();
319 } 326 }
320 327
321 HighContrastController* high_contrast_controller() { 328 HighContrastController* high_contrast_controller() {
322 return high_contrast_controller_.get(); 329 return high_contrast_controller_.get();
323 } 330 }
324 331
325 MagnificationController* magnification_controller() { 332 MagnificationController* magnification_controller() {
326 return magnification_controller_.get(); 333 return magnification_controller_.get();
327 } 334 }
328 335
329 PartialMagnificationController* partial_magnification_controller() {
330 return partial_magnification_controller_.get();
331 }
332
333 AutoclickController* autoclick_controller() { 336 AutoclickController* autoclick_controller() {
334 return autoclick_controller_.get(); 337 return autoclick_controller_.get();
335 } 338 }
336 339
337 aura::client::ActivationClient* activation_client() { 340 aura::client::ActivationClient* activation_client() {
338 return activation_client_; 341 return activation_client_;
339 } 342 }
340 343
341 base::SequencedWorkerPool* blocking_pool() { return blocking_pool_; } 344 base::SequencedWorkerPool* blocking_pool() { return blocking_pool_; }
342 345
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 std::unique_ptr<views::corewm::TooltipController> tooltip_controller_; 505 std::unique_ptr<views::corewm::TooltipController> tooltip_controller_;
503 std::unique_ptr<DesktopBackgroundController> desktop_background_controller_; 506 std::unique_ptr<DesktopBackgroundController> desktop_background_controller_;
504 LinkHandlerModelFactory* link_handler_model_factory_; 507 LinkHandlerModelFactory* link_handler_model_factory_;
505 std::unique_ptr<PowerButtonController> power_button_controller_; 508 std::unique_ptr<PowerButtonController> power_button_controller_;
506 std::unique_ptr<LockStateController> lock_state_controller_; 509 std::unique_ptr<LockStateController> lock_state_controller_;
507 std::unique_ptr<ui::UserActivityDetector> user_activity_detector_; 510 std::unique_ptr<ui::UserActivityDetector> user_activity_detector_;
508 std::unique_ptr<VideoDetector> video_detector_; 511 std::unique_ptr<VideoDetector> video_detector_;
509 std::unique_ptr<WindowTreeHostManager> window_tree_host_manager_; 512 std::unique_ptr<WindowTreeHostManager> window_tree_host_manager_;
510 std::unique_ptr<HighContrastController> high_contrast_controller_; 513 std::unique_ptr<HighContrastController> high_contrast_controller_;
511 std::unique_ptr<MagnificationController> magnification_controller_; 514 std::unique_ptr<MagnificationController> magnification_controller_;
512 std::unique_ptr<PartialMagnificationController>
513 partial_magnification_controller_;
514 std::unique_ptr<AutoclickController> autoclick_controller_; 515 std::unique_ptr<AutoclickController> autoclick_controller_;
515 std::unique_ptr<aura::client::FocusClient> focus_client_; 516 std::unique_ptr<aura::client::FocusClient> focus_client_;
516 517
517 aura::client::ActivationClient* activation_client_; 518 aura::client::ActivationClient* activation_client_;
518 519
519 std::unique_ptr<ScreenshotController> screenshot_controller_; 520 std::unique_ptr<ScreenshotController> screenshot_controller_;
520 521
521 std::unique_ptr<MouseCursorEventFilter> mouse_cursor_filter_; 522 std::unique_ptr<MouseCursorEventFilter> mouse_cursor_filter_;
522 std::unique_ptr<ScreenPositionController> screen_position_controller_; 523 std::unique_ptr<ScreenPositionController> screen_position_controller_;
523 std::unique_ptr<SystemModalContainerEventFilter> modality_filter_; 524 std::unique_ptr<SystemModalContainerEventFilter> modality_filter_;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 std::unique_ptr<DisplayChangeObserver> display_change_observer_; 566 std::unique_ptr<DisplayChangeObserver> display_change_observer_;
566 567
567 // Implements content::ScreenOrientationController for ChromeOS 568 // Implements content::ScreenOrientationController for ChromeOS
568 std::unique_ptr<ScreenOrientationController> screen_orientation_controller_; 569 std::unique_ptr<ScreenOrientationController> screen_orientation_controller_;
569 570
570 std::unique_ptr<TouchTransformerController> touch_transformer_controller_; 571 std::unique_ptr<TouchTransformerController> touch_transformer_controller_;
571 572
572 std::unique_ptr<ui::EventHandler> magnifier_key_scroll_handler_; 573 std::unique_ptr<ui::EventHandler> magnifier_key_scroll_handler_;
573 std::unique_ptr<ui::EventHandler> speech_feedback_handler_; 574 std::unique_ptr<ui::EventHandler> speech_feedback_handler_;
574 std::unique_ptr<StylusMetricsRecorder> stylus_metrics_recorder_; 575 std::unique_ptr<StylusMetricsRecorder> stylus_metrics_recorder_;
576
577 std::unique_ptr<LaserPointerController> laser_pointer_controller_;
578 std::unique_ptr<PartialMagnificationController>
579 partial_magnification_controller_;
575 #endif // defined(OS_CHROMEOS) 580 #endif // defined(OS_CHROMEOS)
576 581
577 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a 582 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a
578 // pointer to vend to test code. 583 // pointer to vend to test code.
579 AshNativeCursorManager* native_cursor_manager_; 584 AshNativeCursorManager* native_cursor_manager_;
580 585
581 // Cursor may be hidden on certain key events in ChromeOS, whereas we never 586 // Cursor may be hidden on certain key events in ChromeOS, whereas we never
582 // hide the cursor on Windows. 587 // hide the cursor on Windows.
583 std::unique_ptr<::wm::CursorManager> cursor_manager_; 588 std::unique_ptr<::wm::CursorManager> cursor_manager_;
584 589
(...skipping 10 matching lines...) Expand all
595 base::SequencedWorkerPool* blocking_pool_; 600 base::SequencedWorkerPool* blocking_pool_;
596 601
597 bool in_mus_ = false; 602 bool in_mus_ = false;
598 603
599 DISALLOW_COPY_AND_ASSIGN(Shell); 604 DISALLOW_COPY_AND_ASSIGN(Shell);
600 }; 605 };
601 606
602 } // namespace ash 607 } // namespace ash
603 608
604 #endif // ASH_SHELL_H_ 609 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/mus/bridge/wm_shell_mus.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698