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

Side by Side Diff: ash/common/wm_shell.h

Issue 2235363003: Wires up WmShellMus::Add/RemovePointerWatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pointer_watcher_capture
Patch Set: cleanup Created 4 years, 4 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
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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 298
299 virtual void AddActivationObserver(WmActivationObserver* observer) = 0; 299 virtual void AddActivationObserver(WmActivationObserver* observer) = 0;
300 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0; 300 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0;
301 301
302 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0; 302 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0;
303 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0; 303 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0;
304 304
305 void AddShellObserver(ShellObserver* observer); 305 void AddShellObserver(ShellObserver* observer);
306 void RemoveShellObserver(ShellObserver* observer); 306 void RemoveShellObserver(ShellObserver* observer);
307 307
308 virtual void AddPointerWatcher(views::PointerWatcher* watcher) = 0; 308 // If |wants_moves| is true PointerWatcher::OnPointerEventObserved() is
309 // called for pointer move events. Enabling pointer moves may incur a
310 // performance hit and should be avoided if possible.
311 virtual void AddPointerWatcher(views::PointerWatcher* watcher,
312 bool wants_moves) = 0;
309 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; 313 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0;
310 314
311 // TODO: Move these back to LockStateController when that has been moved. 315 // TODO: Move these back to LockStateController when that has been moved.
312 void OnLockStateEvent(LockStateObserver::EventType event); 316 void OnLockStateEvent(LockStateObserver::EventType event);
313 void AddLockStateObserver(LockStateObserver* observer); 317 void AddLockStateObserver(LockStateObserver* observer);
314 void RemoveLockStateObserver(LockStateObserver* observer); 318 void RemoveLockStateObserver(LockStateObserver* observer);
315 319
316 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); 320 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate);
317 321
318 // True if any touch points are down. 322 // True if any touch points are down.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 bool simulate_modal_window_open_for_testing_ = false; 403 bool simulate_modal_window_open_for_testing_ = false;
400 404
401 #if defined(OS_CHROMEOS) 405 #if defined(OS_CHROMEOS)
402 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 406 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
403 #endif 407 #endif
404 }; 408 };
405 409
406 } // namespace ash 410 } // namespace ash
407 411
408 #endif // ASH_COMMON_WM_SHELL_H_ 412 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698