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

Side by Side Diff: services/ui/public/cpp/window_tree_client.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 | « services/ui/public/cpp/window.cc ('k') | services/ui/public/cpp/window_tree_client.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_WINDOW_TREE_CLIENT_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 gfx::Point GetCursorScreenPoint(); 171 gfx::Point GetCursorScreenPoint();
172 172
173 // See description in window_tree.mojom. When an existing pointer watcher is 173 // See description in window_tree.mojom. When an existing pointer watcher is
174 // updated or cleared then any future events from the server for that watcher 174 // updated or cleared then any future events from the server for that watcher
175 // will be ignored. 175 // will be ignored.
176 void StartPointerWatcher(bool want_moves); 176 void StartPointerWatcher(bool want_moves);
177 void StopPointerWatcher(); 177 void StopPointerWatcher();
178 178
179 void PerformDragDrop( 179 void PerformDragDrop(
180 Window* window, 180 Window* window,
181 int drag_pointer,
182 const std::map<std::string, std::vector<uint8_t>>& drag_data, 181 const std::map<std::string, std::vector<uint8_t>>& drag_data,
183 int drag_operation, 182 int drag_operation,
184 const gfx::Point& cursor_location, 183 const gfx::Point& cursor_location,
185 const SkBitmap& bitmap, 184 const SkBitmap& bitmap,
186 const base::Callback<void(bool, uint32_t)>& callback); 185 const base::Callback<void(bool, uint32_t)>& callback);
187 186
188 // Cancels a in progress drag drop. (If no drag is in progress, does 187 // Cancels a in progress drag drop. (If no drag is in progress, does
189 // nothing.) 188 // nothing.)
190 void CancelDragDrop(Window* window); 189 void CancelDragDrop(Window* window);
191 190
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 std::set<Id> drag_entered_windows_; 478 std::set<Id> drag_entered_windows_;
480 479
481 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 480 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
482 481
483 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 482 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
484 }; 483 };
485 484
486 } // namespace ui 485 } // namespace ui
487 486
488 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 487 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/window.cc ('k') | services/ui/public/cpp/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698