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 2352233002: mus drag and drop: Add API to let the client cancel the drag. (Closed)
Patch Set: A bunch of dvlogs 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 108 int32_t drag_pointer,
109 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data, 109 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data,
110 uint32_t drag_operation) override; 110 uint32_t drag_operation) override;
111 void CancelDragDrop(uint32_t window_id) override;
111 void PerformWindowMove(uint32_t change_id, 112 void PerformWindowMove(uint32_t change_id,
112 uint32_t window_id, 113 uint32_t window_id,
113 mojom::MoveLoopSource source, 114 mojom::MoveLoopSource source,
114 const gfx::Point& cursor_location) override; 115 const gfx::Point& cursor_location) override;
115 void CancelWindowMove(uint32_t window_id) override; 116 void CancelWindowMove(uint32_t window_id) override;
116 117
117 bool got_change_; 118 bool got_change_;
118 uint32_t change_id_; 119 uint32_t change_id_;
119 std::set<uint32_t> acked_events_; 120 std::set<uint32_t> acked_events_;
120 uint32_t window_id_; 121 uint32_t window_id_;
121 122
122 DISALLOW_COPY_AND_ASSIGN(TestWindowTree); 123 DISALLOW_COPY_AND_ASSIGN(TestWindowTree);
123 }; 124 };
124 125
125 } // namespace ui 126 } // namespace ui
126 127
127 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ 128 #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