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

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: Rename some effect_taken to action_taken for consistency. 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
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/window_tree.h » ('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 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::OnPerformDragDropCompleted(uint32_t window,
385 bool success,
386 uint32_t action_taken) {}
387
384 void TestWindowTreeClient::OnDragDropDone() {} 388 void TestWindowTreeClient::OnDragDropDone() {}
385 389
386 void TestWindowTreeClient::OnChangeCompleted(uint32_t change_id, bool success) { 390 void TestWindowTreeClient::OnChangeCompleted(uint32_t change_id, bool success) {
387 if (record_on_change_completed_) 391 if (record_on_change_completed_)
388 tracker_.OnChangeCompleted(change_id, success); 392 tracker_.OnChangeCompleted(change_id, success);
389 } 393 }
390 394
391 void TestWindowTreeClient::RequestClose(uint32_t window_id) {} 395 void TestWindowTreeClient::RequestClose(uint32_t window_id) {}
392 396
393 void TestWindowTreeClient::GetWindowManager( 397 void TestWindowTreeClient::GetWindowManager(
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 return nullptr; 599 return nullptr;
596 if (!tree->AddWindow(parent_client_id, client_window_id)) 600 if (!tree->AddWindow(parent_client_id, client_window_id))
597 return nullptr; 601 return nullptr;
598 *client_id = client_window_id; 602 *client_id = client_window_id;
599 return tree->GetWindowByClientId(client_window_id); 603 return tree->GetWindowByClientId(client_window_id);
600 } 604 }
601 605
602 } // namespace test 606 } // namespace test
603 } // namespace ws 607 } // namespace ws
604 } // namespace ui 608 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698