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

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

Issue 2323553002: mash: Use the new mus drag and drop API to get drag working in mash. (Closed)
Patch Set: comments Created 4 years, 2 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 | services/ui/public/cpp/tests/test_window_tree.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 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 mojo::TextInputStatePtr state) override; 98 mojo::TextInputStatePtr state) override;
99 void OnWindowInputEventAck(uint32_t event_id, 99 void OnWindowInputEventAck(uint32_t event_id,
100 ui::mojom::EventResult result) override; 100 ui::mojom::EventResult result) override;
101 void GetWindowManagerClient( 101 void GetWindowManagerClient(
102 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) 102 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal)
103 override; 103 override;
104 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback) 104 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback)
105 override; 105 override;
106 void PerformDragDrop(uint32_t change_id, 106 void PerformDragDrop(uint32_t change_id,
107 uint32_t source_window_id, 107 uint32_t source_window_id,
108 int32_t drag_pointer,
109 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data, 108 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data,
110 uint32_t drag_operation) override; 109 uint32_t drag_operation) override;
111 void CancelDragDrop(uint32_t window_id) override; 110 void CancelDragDrop(uint32_t window_id) override;
112 void PerformWindowMove(uint32_t change_id, 111 void PerformWindowMove(uint32_t change_id,
113 uint32_t window_id, 112 uint32_t window_id,
114 mojom::MoveLoopSource source, 113 mojom::MoveLoopSource source,
115 const gfx::Point& cursor_location) override; 114 const gfx::Point& cursor_location) override;
116 void CancelWindowMove(uint32_t window_id) override; 115 void CancelWindowMove(uint32_t window_id) override;
117 116
118 bool got_change_; 117 bool got_change_;
119 uint32_t change_id_; 118 uint32_t change_id_;
120 std::set<uint32_t> acked_events_; 119 std::set<uint32_t> acked_events_;
121 uint32_t window_id_; 120 uint32_t window_id_;
122 121
123 DISALLOW_COPY_AND_ASSIGN(TestWindowTree); 122 DISALLOW_COPY_AND_ASSIGN(TestWindowTree);
124 }; 123 };
125 124
126 } // namespace ui 125 } // namespace ui
127 126
128 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ 127 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_
OLDNEW
« no previous file with comments | « no previous file | services/ui/public/cpp/tests/test_window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698