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

Side by Side Diff: ui/aura/mus/window_tree_client.h

Issue 2696873002: Change OnWindowInputEvent to use display_id to find the host and update event root_location in WS. (Closed)
Patch Set: helper function Created 3 years, 10 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 | « no previous file | ui/aura/mus/window_tree_client.cc » ('j') | ui/aura/mus/window_tree_client.cc » ('J')
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 UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 5 #ifndef UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 // Overrided from FocusSynchronizerDelegate: 471 // Overrided from FocusSynchronizerDelegate:
472 uint32_t CreateChangeIdForFocus(WindowMus* window) override; 472 uint32_t CreateChangeIdForFocus(WindowMus* window) override;
473 473
474 // The one int in |cursor_location_mapping_|. When we read from this 474 // The one int in |cursor_location_mapping_|. When we read from this
475 // location, we must always read from it atomically. 475 // location, we must always read from it atomically.
476 base::subtle::Atomic32* cursor_location_memory() { 476 base::subtle::Atomic32* cursor_location_memory() {
477 return reinterpret_cast<base::subtle::Atomic32*>( 477 return reinterpret_cast<base::subtle::Atomic32*>(
478 cursor_location_mapping_.get()); 478 cursor_location_mapping_.get());
479 } 479 }
480 480
481 // Helper function to get the WindowTreeHostMus with the |display_id|.
482 WindowTreeHostMus* GetWindowTreeHostMusWithDisplayId(int64_t display_id);
483
481 // This may be null in tests. 484 // This may be null in tests.
482 service_manager::Connector* connector_; 485 service_manager::Connector* connector_;
483 486
484 // This is set once and only once when we get OnEmbed(). It gives the unique 487 // This is set once and only once when we get OnEmbed(). It gives the unique
485 // id for this client. 488 // id for this client.
486 ClientSpecificId client_id_; 489 ClientSpecificId client_id_;
487 490
488 // Id assigned to the next window created. 491 // Id assigned to the next window created.
489 ClientSpecificId next_window_id_; 492 ClientSpecificId next_window_id_;
490 493
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 std::unique_ptr<ui::Gpu> gpu_; 549 std::unique_ptr<ui::Gpu> gpu_;
547 std::unique_ptr<MusContextFactory> compositor_context_factory_; 550 std::unique_ptr<MusContextFactory> compositor_context_factory_;
548 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 551 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
549 552
550 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 553 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
551 }; 554 };
552 555
553 } // namespace aura 556 } // namespace aura
554 557
555 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 558 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/mus/window_tree_client.cc » ('j') | ui/aura/mus/window_tree_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698