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

Side by Side Diff: services/ui/public/cpp/tests/test_window_tree.h

Issue 2568303006: aura-mus: Implement Deactivate(). (Closed)
Patch Set: Prune comments and other debugging gunk. Created 3 years, 11 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 SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_
6 #define SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ 6 #define SERVICES_UI_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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 void SetPredefinedCursor(uint32_t change_id, 95 void SetPredefinedCursor(uint32_t change_id,
96 uint32_t window_id, 96 uint32_t window_id,
97 ui::mojom::Cursor cursor_id) override; 97 ui::mojom::Cursor cursor_id) override;
98 void SetWindowTextInputState(uint32_t window_id, 98 void SetWindowTextInputState(uint32_t window_id,
99 mojo::TextInputStatePtr state) override; 99 mojo::TextInputStatePtr state) override;
100 void SetImeVisibility(uint32_t window_id, 100 void SetImeVisibility(uint32_t window_id,
101 bool visible, 101 bool visible,
102 mojo::TextInputStatePtr state) override; 102 mojo::TextInputStatePtr state) override;
103 void OnWindowInputEventAck(uint32_t event_id, 103 void OnWindowInputEventAck(uint32_t event_id,
104 ui::mojom::EventResult result) override; 104 ui::mojom::EventResult result) override;
105 void DeactivateWindow(uint32_t current_window_id) override;
sky 2017/01/12 00:55:39 For consistency use window_id (most other function
Elliot Glaysher 2017/01/12 23:20:37 Done.
105 void GetWindowManagerClient( 106 void GetWindowManagerClient(
106 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) 107 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal)
107 override; 108 override;
108 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback) 109 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback)
109 override; 110 override;
110 void PerformDragDrop( 111 void PerformDragDrop(
111 uint32_t change_id, 112 uint32_t change_id,
112 uint32_t source_window_id, 113 uint32_t source_window_id,
113 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, 114 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data,
114 uint32_t drag_operation) override; 115 uint32_t drag_operation) override;
115 void CancelDragDrop(uint32_t window_id) override; 116 void CancelDragDrop(uint32_t window_id) override;
116 void PerformWindowMove(uint32_t change_id, 117 void PerformWindowMove(uint32_t change_id,
117 uint32_t window_id, 118 uint32_t window_id,
118 mojom::MoveLoopSource source, 119 mojom::MoveLoopSource source,
119 const gfx::Point& cursor_location) override; 120 const gfx::Point& cursor_location) override;
120 void CancelWindowMove(uint32_t window_id) override; 121 void CancelWindowMove(uint32_t window_id) override;
121 122
122 bool got_change_; 123 bool got_change_;
123 uint32_t change_id_; 124 uint32_t change_id_;
124 std::set<uint32_t> acked_events_; 125 std::set<uint32_t> acked_events_;
125 uint32_t window_id_; 126 uint32_t window_id_;
126 127
127 DISALLOW_COPY_AND_ASSIGN(TestWindowTree); 128 DISALLOW_COPY_AND_ASSIGN(TestWindowTree);
128 }; 129 };
129 130
130 } // namespace ui 131 } // namespace ui
131 132
132 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ 133 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698