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

Side by Side Diff: services/ui/ws/window_tree.h

Issue 2248263003: Updates PointerEventRouter to handle switching move type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again 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 | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/window_tree.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 SERVICES_UI_WS_WINDOW_TREE_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_TREE_H_
6 #define SERVICES_UI_WS_WINDOW_TREE_H_ 6 #define SERVICES_UI_WS_WINDOW_TREE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 void ReorderWindow(uint32_t change_Id, 370 void ReorderWindow(uint32_t change_Id,
371 Id window_id, 371 Id window_id,
372 Id relative_window_id, 372 Id relative_window_id,
373 mojom::OrderDirection direction) override; 373 mojom::OrderDirection direction) override;
374 void GetWindowTree( 374 void GetWindowTree(
375 Id window_id, 375 Id window_id,
376 const base::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) 376 const base::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback)
377 override; 377 override;
378 void SetCapture(uint32_t change_id, Id window_id) override; 378 void SetCapture(uint32_t change_id, Id window_id) override;
379 void ReleaseCapture(uint32_t change_id, Id window_id) override; 379 void ReleaseCapture(uint32_t change_id, Id window_id) override;
380 void StartPointerWatcher(bool want_moves, 380 void StartPointerWatcher(bool want_moves) override;
381 uint32_t pointer_watcher_id) override;
382 void StopPointerWatcher() override; 381 void StopPointerWatcher() override;
383 void SetWindowBounds(uint32_t change_id, 382 void SetWindowBounds(uint32_t change_id,
384 Id window_id, 383 Id window_id,
385 const gfx::Rect& bounds) override; 384 const gfx::Rect& bounds) override;
386 void SetWindowVisibility(uint32_t change_id, 385 void SetWindowVisibility(uint32_t change_id,
387 Id window_id, 386 Id window_id,
388 bool visible) override; 387 bool visible) override;
389 void SetWindowProperty(uint32_t change_id, 388 void SetWindowProperty(uint32_t change_id,
390 Id transport_window_id, 389 Id transport_window_id,
391 const mojo::String& name, 390 const mojo::String& name,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 uint32_t event_ack_id_; 490 uint32_t event_ack_id_;
492 491
493 // A client is considered janky if it hasn't ACK'ed input events within a 492 // A client is considered janky if it hasn't ACK'ed input events within a
494 // reasonable timeframe. 493 // reasonable timeframe.
495 bool janky_ = false; 494 bool janky_ = false;
496 495
497 // For performance reasons, only send move events if the client explicitly 496 // For performance reasons, only send move events if the client explicitly
498 // requests them. 497 // requests them.
499 bool pointer_watcher_want_moves_ = false; 498 bool pointer_watcher_want_moves_ = false;
500 499
501 // The ID supplied by the client for the current pointer watcher. 500 // True if StartPointerWatcher() was called.
502 uint32_t pointer_watcher_id_ = 0; 501 bool has_pointer_watcher_ = false;
503 502
504 // WindowManager the current event came from. 503 // WindowManager the current event came from.
505 WindowManagerState* event_source_wms_ = nullptr; 504 WindowManagerState* event_source_wms_ = nullptr;
506 505
507 std::queue<std::unique_ptr<TargetedEvent>> event_queue_; 506 std::queue<std::unique_ptr<TargetedEvent>> event_queue_;
508 507
509 std::unique_ptr<mojo::AssociatedBinding<mojom::WindowManagerClient>> 508 std::unique_ptr<mojo::AssociatedBinding<mojom::WindowManagerClient>>
510 window_manager_internal_client_binding_; 509 window_manager_internal_client_binding_;
511 mojom::WindowManager* window_manager_internal_; 510 mojom::WindowManager* window_manager_internal_;
512 std::unique_ptr<WindowManagerState> window_manager_state_; 511 std::unique_ptr<WindowManagerState> window_manager_state_;
513 512
514 std::unique_ptr<WaitingForTopLevelWindowInfo> 513 std::unique_ptr<WaitingForTopLevelWindowInfo>
515 waiting_for_top_level_window_info_; 514 waiting_for_top_level_window_info_;
516 bool embedder_intercepts_events_ = false; 515 bool embedder_intercepts_events_ = false;
517 516
518 DISALLOW_COPY_AND_ASSIGN(WindowTree); 517 DISALLOW_COPY_AND_ASSIGN(WindowTree);
519 }; 518 };
520 519
521 } // namespace ws 520 } // namespace ws
522 } // namespace ui 521 } // namespace ui
523 522
524 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ 523 #endif // SERVICES_UI_WS_WINDOW_TREE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698