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

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

Issue 2271393002: Wires up drags to pointer watcher adapter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 virtual void AddActivationObserver(WmActivationObserver* observer) = 0; 315 virtual void AddActivationObserver(WmActivationObserver* observer) = 0;
316 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0; 316 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0;
317 317
318 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0; 318 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0;
319 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0; 319 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0;
320 320
321 void AddShellObserver(ShellObserver* observer); 321 void AddShellObserver(ShellObserver* observer);
322 void RemoveShellObserver(ShellObserver* observer); 322 void RemoveShellObserver(ShellObserver* observer);
323 323
324 // If |wants_moves| is true PointerWatcher::OnPointerEventObserved() is 324 // If |wants_moves| is true PointerWatcher::OnPointerEventObserved() is
325 // called for pointer move events. Enabling pointer moves may incur a 325 // called for pointer move events. If |wants_drags| is true
326 // performance hit and should be avoided if possible. 326 // PointerWatcher::OnPointerEventObserved() is called for pointer drag events.
327 // Enabling pointer moves or drags may incur a performance hit and should be
328 // avoided if possible.
327 virtual void AddPointerWatcher(views::PointerWatcher* watcher, 329 virtual void AddPointerWatcher(views::PointerWatcher* watcher,
328 bool wants_moves) = 0; 330 bool wants_moves,
331 bool wants_drags) = 0;
329 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; 332 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0;
330 333
331 // TODO: Move these back to LockStateController when that has been moved. 334 // TODO: Move these back to LockStateController when that has been moved.
332 void OnLockStateEvent(LockStateObserver::EventType event); 335 void OnLockStateEvent(LockStateObserver::EventType event);
333 void AddLockStateObserver(LockStateObserver* observer); 336 void AddLockStateObserver(LockStateObserver* observer);
334 void RemoveLockStateObserver(LockStateObserver* observer); 337 void RemoveLockStateObserver(LockStateObserver* observer);
335 338
336 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); 339 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate);
337 void SetPaletteDelegateForTesting( 340 void SetPaletteDelegateForTesting(
338 std::unique_ptr<PaletteDelegate> palette_delegate); 341 std::unique_ptr<PaletteDelegate> palette_delegate);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 bool simulate_modal_window_open_for_testing_ = false; 423 bool simulate_modal_window_open_for_testing_ = false;
421 424
422 #if defined(OS_CHROMEOS) 425 #if defined(OS_CHROMEOS)
423 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 426 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
424 #endif 427 #endif
425 }; 428 };
426 429
427 } // namespace ash 430 } // namespace ash
428 431
429 #endif // ASH_COMMON_WM_SHELL_H_ 432 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698