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

Side by Side Diff: ui/aura/test/mus/test_window_tree.cc

Issue 2764963003: aura-mus: add a drag representation image. (Closed)
Patch Set: Patch cleanup. Created 3 years, 9 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 #include "ui/aura/test/mus/test_window_tree.h" 5 #include "ui/aura/test/mus/test_window_tree.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace aura { 9 namespace aura {
10 10
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 } 283 }
284 284
285 void TestWindowTree::GetCursorLocationMemory( 285 void TestWindowTree::GetCursorLocationMemory(
286 const GetCursorLocationMemoryCallback& callback) { 286 const GetCursorLocationMemoryCallback& callback) {
287 callback.Run(mojo::ScopedSharedBufferHandle()); 287 callback.Run(mojo::ScopedSharedBufferHandle());
288 } 288 }
289 289
290 void TestWindowTree::PerformDragDrop( 290 void TestWindowTree::PerformDragDrop(
291 uint32_t change_id, 291 uint32_t change_id,
292 uint32_t source_window_id, 292 uint32_t source_window_id,
293 const gfx::Point& screen_location,
293 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, 294 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data,
294 uint32_t drag_operation) { 295 const SkBitmap& drag_image,
296 const gfx::Vector2d& drag_image_offset,
297 uint32_t drag_operation,
298 ui::mojom::DragEventSource source) {
295 OnChangeReceived(change_id); 299 OnChangeReceived(change_id);
296 } 300 }
297 301
298 void TestWindowTree::CancelDragDrop(uint32_t window_id) {} 302 void TestWindowTree::CancelDragDrop(uint32_t window_id) {}
299 303
300 void TestWindowTree::PerformWindowMove(uint32_t change_id, 304 void TestWindowTree::PerformWindowMove(uint32_t change_id,
301 uint32_t window_id, 305 uint32_t window_id,
302 ui::mojom::MoveLoopSource source, 306 ui::mojom::MoveLoopSource source,
303 const gfx::Point& cursor_location) { 307 const gfx::Point& cursor_location) {
304 OnChangeReceived(change_id); 308 OnChangeReceived(change_id);
305 } 309 }
306 310
307 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} 311 void TestWindowTree::CancelWindowMove(uint32_t window_id) {}
308 312
309 } // namespace aura 313 } // namespace aura
OLDNEW
« services/ui/ws/window_tree.cc ('K') | « ui/aura/test/mus/test_window_tree.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698