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

Side by Side Diff: ash/common/wm_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/common/test/test_palette_delegate.cc ('k') | ash/laser/laser_pointer_controller.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_COMMON_WM_SHELL_H_ 5 #ifndef ASH_COMMON_WM_SHELL_H_
6 #define ASH_COMMON_WM_SHELL_H_ 6 #define ASH_COMMON_WM_SHELL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 // True if any touch points are down. 343 // True if any touch points are down.
344 virtual bool IsTouchDown() = 0; 344 virtual bool IsTouchDown() = 0;
345 345
346 #if defined(OS_CHROMEOS) 346 #if defined(OS_CHROMEOS)
347 LogoutConfirmationController* logout_confirmation_controller() { 347 LogoutConfirmationController* logout_confirmation_controller() {
348 return logout_confirmation_controller_.get(); 348 return logout_confirmation_controller_.get();
349 } 349 }
350 350
351 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. 351 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved.
352 virtual void ToggleIgnoreExternalKeyboard() = 0; 352 virtual void ToggleIgnoreExternalKeyboard() = 0;
353
354 // Enable or disable the laser pointer.
355 virtual void SetLaserPointerEnabled(bool enabled) = 0;
353 #endif 356 #endif
354 357
355 protected: 358 protected:
356 explicit WmShell(std::unique_ptr<ShellDelegate> shell_delegate); 359 explicit WmShell(std::unique_ptr<ShellDelegate> shell_delegate);
357 virtual ~WmShell(); 360 virtual ~WmShell();
358 361
359 base::ObserverList<ShellObserver>* shell_observers() { 362 base::ObserverList<ShellObserver>* shell_observers() {
360 return &shell_observers_; 363 return &shell_observers_;
361 } 364 }
362 365
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 bool simulate_modal_window_open_for_testing_ = false; 427 bool simulate_modal_window_open_for_testing_ = false;
425 428
426 #if defined(OS_CHROMEOS) 429 #if defined(OS_CHROMEOS)
427 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 430 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
428 #endif 431 #endif
429 }; 432 };
430 433
431 } // namespace ash 434 } // namespace ash
432 435
433 #endif // ASH_COMMON_WM_SHELL_H_ 436 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW
« no previous file with comments | « ash/common/test/test_palette_delegate.cc ('k') | ash/laser/laser_pointer_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698