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

Side by Side Diff: components/mus/public/cpp/tests/test_window_tree.h

Issue 1909733002: mus: Add EventObserver to allow passively listening to UI events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 uint32_t window_id) override; 70 uint32_t window_id) override;
71 void SetModal(uint32_t change_id, uint32_t window_id) override; 71 void SetModal(uint32_t change_id, uint32_t window_id) override;
72 void ReorderWindow(uint32_t change_id, 72 void ReorderWindow(uint32_t change_id,
73 uint32_t window_id, 73 uint32_t window_id,
74 uint32_t relative_window_id, 74 uint32_t relative_window_id,
75 mojom::OrderDirection direction) override; 75 mojom::OrderDirection direction) override;
76 void GetWindowTree(uint32_t window_id, 76 void GetWindowTree(uint32_t window_id,
77 const GetWindowTreeCallback& callback) override; 77 const GetWindowTreeCallback& callback) override;
78 void SetCapture(uint32_t change_id, uint32_t window_id) override; 78 void SetCapture(uint32_t change_id, uint32_t window_id) override;
79 void ReleaseCapture(uint32_t change_id, uint32_t window_id) override; 79 void ReleaseCapture(uint32_t change_id, uint32_t window_id) override;
80 void SetEventObserver(mojom::EventMatcherPtr matcher,
81 uint32_t observer_id) override;
80 void Embed(uint32_t window_id, 82 void Embed(uint32_t window_id,
81 mojom::WindowTreeClientPtr client, 83 mojom::WindowTreeClientPtr client,
82 const EmbedCallback& callback) override; 84 const EmbedCallback& callback) override;
83 void SetFocus(uint32_t change_id, uint32_t window_id) override; 85 void SetFocus(uint32_t change_id, uint32_t window_id) override;
84 void SetCanFocus(uint32_t window_id, bool can_focus) override; 86 void SetCanFocus(uint32_t window_id, bool can_focus) override;
85 void SetPredefinedCursor(uint32_t change_id, 87 void SetPredefinedCursor(uint32_t change_id,
86 uint32_t window_id, 88 uint32_t window_id,
87 mus::mojom::Cursor cursor_id) override; 89 mus::mojom::Cursor cursor_id) override;
88 void SetWindowTextInputState(uint32_t window_id, 90 void SetWindowTextInputState(uint32_t window_id,
89 mojo::TextInputStatePtr state) override; 91 mojo::TextInputStatePtr state) override;
(...skipping 10 matching lines...) Expand all
100 uint32_t change_id_; 102 uint32_t change_id_;
101 std::set<uint32_t> acked_events_; 103 std::set<uint32_t> acked_events_;
102 uint32_t window_id_; 104 uint32_t window_id_;
103 105
104 DISALLOW_COPY_AND_ASSIGN(TestWindowTree); 106 DISALLOW_COPY_AND_ASSIGN(TestWindowTree);
105 }; 107 };
106 108
107 } // namespace mus 109 } // namespace mus
108 110
109 #endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ 111 #endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698