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

Side by Side Diff: ui/aura/test/mus/window_tree_client_private.h

Issue 2752903002: Make ui::test::EventGenerator work with PointerEvents in mash (Closed)
Patch Set: review comments Created 3 years, 9 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 UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_ 5 #ifndef UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_
6 #define UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_ 6 #define UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void OnEmbed(ui::mojom::WindowTree* window_tree); 42 void OnEmbed(ui::mojom::WindowTree* window_tree);
43 43
44 WindowTreeHostMus* CallWmNewDisplayAdded(const display::Display& display); 44 WindowTreeHostMus* CallWmNewDisplayAdded(const display::Display& display);
45 WindowTreeHostMus* CallWmNewDisplayAdded(const display::Display& display, 45 WindowTreeHostMus* CallWmNewDisplayAdded(const display::Display& display,
46 ui::mojom::WindowDataPtr root_data, 46 ui::mojom::WindowDataPtr root_data,
47 bool parent_drawn); 47 bool parent_drawn);
48 48
49 // Pretends that |event| has been received from the window server. 49 // Pretends that |event| has been received from the window server.
50 void CallOnWindowInputEvent(Window* window, std::unique_ptr<ui::Event> event); 50 void CallOnWindowInputEvent(Window* window, std::unique_ptr<ui::Event> event);
51 51
52 // Simulates |event| matching a pointer watcher on the window server.
53 void CallOnPointerEventObserved(Window* window,
54 std::unique_ptr<ui::Event> event);
55
52 void CallOnCaptureChanged(Window* new_capture, Window* old_capture); 56 void CallOnCaptureChanged(Window* new_capture, Window* old_capture);
53 57
54 // Sets the WindowTree and client id. 58 // Sets the WindowTree and client id.
55 void SetTreeAndClientId(ui::mojom::WindowTree* window_tree, 59 void SetTreeAndClientId(ui::mojom::WindowTree* window_tree,
56 ClientSpecificId client_id); 60 ClientSpecificId client_id);
57 61
58 bool HasPointerWatcher(); 62 bool HasPointerWatcher();
59 63
60 Window* GetWindowByServerId(Id id); 64 Window* GetWindowByServerId(Id id);
61 65
62 private: 66 private:
63 WindowTreeClient* tree_client_impl_; 67 WindowTreeClient* tree_client_impl_;
64 uint16_t next_window_id_ = 1u; 68 uint16_t next_window_id_ = 1u;
65 69
66 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientPrivate); 70 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientPrivate);
67 }; 71 };
68 72
69 } // namespace ui 73 } // namespace ui
70 74
71 #endif // UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_ 75 #endif // UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_
OLDNEW
« no previous file with comments | « ui/aura/test/event_generator_delegate_aura.cc ('k') | ui/aura/test/mus/window_tree_client_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698