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

Side by Side Diff: services/ui/public/cpp/window.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/tests/test_window_tree.cc ('k') | services/ui/public/cpp/window.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_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 232
233 // TODO(sky): this API is only applicable to the WindowManager. Move it 233 // TODO(sky): this API is only applicable to the WindowManager. Move it
234 // to a better place. 234 // to a better place.
235 void RequestClose(); 235 void RequestClose();
236 236
237 // Starts an inter-process drag and drop operation. When this finishes, will 237 // Starts an inter-process drag and drop operation. When this finishes, will
238 // return the tuple [success, action_taken] to |callback|, where action_taken 238 // return the tuple [success, action_taken] to |callback|, where action_taken
239 // is one of the ui::mojom::kDropEffect constants in 239 // is one of the ui::mojom::kDropEffect constants in
240 // window_tree_constants.mojom. 240 // window_tree_constants.mojom.
241 void PerformDragDrop( 241 void PerformDragDrop(
242 int drag_pointer,
243 const std::map<std::string, std::vector<uint8_t>>& drag_data, 242 const std::map<std::string, std::vector<uint8_t>>& drag_data,
244 int drag_operation, 243 int drag_operation,
245 const gfx::Point& cursor_location, 244 const gfx::Point& cursor_location,
246 const SkBitmap& bitmap, 245 const SkBitmap& bitmap,
247 const base::Callback<void(bool, uint32_t)>& callback); 246 const base::Callback<void(bool, uint32_t)>& callback);
248 247
249 // Cancels the in progress drag started with PerformDragDrop(). 248 // Cancels the in progress drag started with PerformDragDrop().
250 void CancelDragDrop(); 249 void CancelDragDrop();
251 250
252 // Tells the window manager to take control of moving the window. Returns 251 // Tells the window manager to take control of moving the window. Returns
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 }; 391 };
393 392
394 std::map<const void*, Value> prop_map_; 393 std::map<const void*, Value> prop_map_;
395 394
396 DISALLOW_COPY_AND_ASSIGN(Window); 395 DISALLOW_COPY_AND_ASSIGN(Window);
397 }; 396 };
398 397
399 } // namespace ui 398 } // namespace ui
400 399
401 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ 400 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/tests/test_window_tree.cc ('k') | services/ui/public/cpp/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698