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

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

Issue 2266603002: mus: Implement interwindow drag and drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Uploaded for a few comments. Created 4 years, 4 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 void TestWindowTreeClient::OnWindowFocused(uint32_t focused_window_id) { 342 void TestWindowTreeClient::OnWindowFocused(uint32_t focused_window_id) {
343 tracker_.OnWindowFocused(focused_window_id); 343 tracker_.OnWindowFocused(focused_window_id);
344 } 344 }
345 345
346 void TestWindowTreeClient::OnWindowPredefinedCursorChanged( 346 void TestWindowTreeClient::OnWindowPredefinedCursorChanged(
347 uint32_t window_id, 347 uint32_t window_id,
348 mojom::Cursor cursor_id) { 348 mojom::Cursor cursor_id) {
349 tracker_.OnWindowPredefinedCursorChanged(window_id, cursor_id); 349 tracker_.OnWindowPredefinedCursorChanged(window_id, cursor_id);
350 } 350 }
351 351
352 void TestWindowTreeClient::OnDragEnter(
353 uint32_t window,
354 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data,
355 uint32_t key_state,
356 const gfx::Point& position,
357 uint32_t effect_bitmask,
358 const OnDragEnterCallback& callback) {}
359
360 void TestWindowTreeClient::OnDragOver(uint32_t window,
361 uint32_t key_state,
362 const gfx::Point& position,
363 uint32_t effect_bitmask,
364 const OnDragOverCallback& callback) {}
365 void TestWindowTreeClient::OnDragLeave(uint32_t window) {}
366 void TestWindowTreeClient::OnDragDrop(uint32_t window,
367 uint32_t key_state,
368 const gfx::Point& position,
369 uint32_t effect_bitmask,
370 const OnDragDropCallback& callback) {}
371
352 void TestWindowTreeClient::OnChangeCompleted(uint32_t change_id, bool success) { 372 void TestWindowTreeClient::OnChangeCompleted(uint32_t change_id, bool success) {
353 if (record_on_change_completed_) 373 if (record_on_change_completed_)
354 tracker_.OnChangeCompleted(change_id, success); 374 tracker_.OnChangeCompleted(change_id, success);
355 } 375 }
356 376
357 void TestWindowTreeClient::RequestClose(uint32_t window_id) {} 377 void TestWindowTreeClient::RequestClose(uint32_t window_id) {}
358 378
359 void TestWindowTreeClient::GetWindowManager( 379 void TestWindowTreeClient::GetWindowManager(
360 mojo::AssociatedInterfaceRequest<mojom::WindowManager> internal) {} 380 mojo::AssociatedInterfaceRequest<mojom::WindowManager> internal) {}
361 381
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 return nullptr; 562 return nullptr;
543 if (!tree->AddWindow(parent_client_id, client_window_id)) 563 if (!tree->AddWindow(parent_client_id, client_window_id))
544 return nullptr; 564 return nullptr;
545 *client_id = client_window_id; 565 *client_id = client_window_id;
546 return tree->GetWindowByClientId(client_window_id); 566 return tree->GetWindowByClientId(client_window_id);
547 } 567 }
548 568
549 } // namespace test 569 } // namespace test
550 } // namespace ws 570 } // namespace ws
551 } // namespace ui 571 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698