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

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

Issue 2218143002: Adds WmShell::IsTouchDown() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « ash/aura/wm_shell_aura.cc ('k') | ash/mus/bridge/wm_shell_mus.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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 virtual void AddPointerWatcher(views::PointerWatcher* watcher) = 0; 278 virtual void AddPointerWatcher(views::PointerWatcher* watcher) = 0;
279 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; 279 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0;
280 280
281 // TODO: Move these back to LockStateController when that has been moved. 281 // TODO: Move these back to LockStateController when that has been moved.
282 void OnLockStateEvent(LockStateObserver::EventType event); 282 void OnLockStateEvent(LockStateObserver::EventType event);
283 void AddLockStateObserver(LockStateObserver* observer); 283 void AddLockStateObserver(LockStateObserver* observer);
284 void RemoveLockStateObserver(LockStateObserver* observer); 284 void RemoveLockStateObserver(LockStateObserver* observer);
285 285
286 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); 286 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate);
287 287
288 // True if any touch points are down.
289 virtual bool IsTouchDown() = 0;
290
288 #if defined(OS_CHROMEOS) 291 #if defined(OS_CHROMEOS)
289 LogoutConfirmationController* logout_confirmation_controller() { 292 LogoutConfirmationController* logout_confirmation_controller() {
290 return logout_confirmation_controller_.get(); 293 return logout_confirmation_controller_.get();
291 } 294 }
292 295
293 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. 296 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved.
294 virtual void ToggleIgnoreExternalKeyboard() = 0; 297 virtual void ToggleIgnoreExternalKeyboard() = 0;
295 #endif 298 #endif
296 299
297 protected: 300 protected:
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 bool simulate_modal_window_open_for_testing_ = false; 368 bool simulate_modal_window_open_for_testing_ = false;
366 369
367 #if defined(OS_CHROMEOS) 370 #if defined(OS_CHROMEOS)
368 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 371 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
369 #endif 372 #endif
370 }; 373 };
371 374
372 } // namespace ash 375 } // namespace ash
373 376
374 #endif // ASH_COMMON_WM_SHELL_H_ 377 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW
« no previous file with comments | « ash/aura/wm_shell_aura.cc ('k') | ash/mus/bridge/wm_shell_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698