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

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

Issue 2824103004: mus: Adds WindowManagerDelegate::OnWmConnected() (Closed)
Patch Set: Created 3 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
« no previous file with comments | « ui/aura/test/aura_test_base.cc ('k') | ui/aura/test/mus/window_tree_client_private.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 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 52 // Simulates |event| matching a pointer watcher on the window server.
53 void CallOnPointerEventObserved(Window* window, 53 void CallOnPointerEventObserved(Window* window,
54 std::unique_ptr<ui::Event> event); 54 std::unique_ptr<ui::Event> event);
55 55
56 void CallOnCaptureChanged(Window* new_capture, Window* old_capture); 56 void CallOnCaptureChanged(Window* new_capture, Window* old_capture);
57 57
58 void CallOnConnect();
59
58 // Sets the WindowTree and client id. 60 // Sets the WindowTree and client id.
59 void SetTreeAndClientId(ui::mojom::WindowTree* window_tree, 61 void SetTreeAndClientId(ui::mojom::WindowTree* window_tree,
60 ClientSpecificId client_id); 62 ClientSpecificId client_id);
61 63
62 bool HasPointerWatcher(); 64 bool HasPointerWatcher();
63 65
64 Window* GetWindowByServerId(Id id); 66 Window* GetWindowByServerId(Id id);
65 67
66 private: 68 private:
67 WindowTreeClient* tree_client_impl_; 69 WindowTreeClient* tree_client_impl_;
68 uint16_t next_window_id_ = 1u; 70 uint16_t next_window_id_ = 1u;
69 71
70 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientPrivate); 72 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientPrivate);
71 }; 73 };
72 74
73 } // namespace ui 75 } // namespace ui
74 76
75 #endif // UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_ 77 #endif // UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_
OLDNEW
« no previous file with comments | « ui/aura/test/aura_test_base.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