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

Side by Side Diff: services/ui/ws/test_utils.cc

Issue 2349973010: mus drag and drop: return the completed effect to the caller. (Closed)
Patch Set: 80 chars Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "services/ui/ws/test_utils.h" 5 #include "services/ui/ws/test_utils.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "cc/output/copy_output_request.h" 10 #include "cc/output/copy_output_request.h"
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 374
375 void TestWindowTreeClient::OnDragLeave(uint32_t window) {} 375 void TestWindowTreeClient::OnDragLeave(uint32_t window) {}
376 376
377 void TestWindowTreeClient::OnCompleteDrop( 377 void TestWindowTreeClient::OnCompleteDrop(
378 uint32_t window, 378 uint32_t window,
379 uint32_t key_state, 379 uint32_t key_state,
380 const gfx::Point& position, 380 const gfx::Point& position,
381 uint32_t effect_bitmask, 381 uint32_t effect_bitmask,
382 const OnCompleteDropCallback& callback) {} 382 const OnCompleteDropCallback& callback) {}
383 383
384 void TestWindowTreeClient::OnDragCompletedReturnValue(uint32_t window,
385 uint32_t action_taken) {}
386
384 void TestWindowTreeClient::OnDragDropDone() {} 387 void TestWindowTreeClient::OnDragDropDone() {}
385 388
386 void TestWindowTreeClient::OnChangeCompleted(uint32_t change_id, bool success) { 389 void TestWindowTreeClient::OnChangeCompleted(uint32_t change_id, bool success) {
387 if (record_on_change_completed_) 390 if (record_on_change_completed_)
388 tracker_.OnChangeCompleted(change_id, success); 391 tracker_.OnChangeCompleted(change_id, success);
389 } 392 }
390 393
391 void TestWindowTreeClient::RequestClose(uint32_t window_id) {} 394 void TestWindowTreeClient::RequestClose(uint32_t window_id) {}
392 395
393 void TestWindowTreeClient::GetWindowManager( 396 void TestWindowTreeClient::GetWindowManager(
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 return nullptr; 598 return nullptr;
596 if (!tree->AddWindow(parent_client_id, client_window_id)) 599 if (!tree->AddWindow(parent_client_id, client_window_id))
597 return nullptr; 600 return nullptr;
598 *client_id = client_window_id; 601 *client_id = client_window_id;
599 return tree->GetWindowByClientId(client_window_id); 602 return tree->GetWindowByClientId(client_window_id);
600 } 603 }
601 604
602 } // namespace test 605 } // namespace test
603 } // namespace ws 606 } // namespace ws
604 } // namespace ui 607 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698