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

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

Issue 2266603002: mus: Implement interwindow drag and drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more comments 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/window_tree.cc ('k') | no next file » | 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 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 const String& name, 364 const String& name,
365 Array<uint8_t> new_data) override { 365 Array<uint8_t> new_data) override {
366 tracker_.OnWindowSharedPropertyChanged(window, name, std::move(new_data)); 366 tracker_.OnWindowSharedPropertyChanged(window, name, std::move(new_data));
367 } 367 }
368 // TODO(sky): add testing coverage. 368 // TODO(sky): add testing coverage.
369 void OnWindowFocused(uint32_t focused_window_id) override {} 369 void OnWindowFocused(uint32_t focused_window_id) override {}
370 void OnWindowPredefinedCursorChanged(uint32_t window_id, 370 void OnWindowPredefinedCursorChanged(uint32_t window_id,
371 mojom::Cursor cursor_id) override { 371 mojom::Cursor cursor_id) override {
372 tracker_.OnWindowPredefinedCursorChanged(window_id, cursor_id); 372 tracker_.OnWindowPredefinedCursorChanged(window_id, cursor_id);
373 } 373 }
374
375 void OnDragDropStart(
376 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data) override {
377 NOTIMPLEMENTED();
378 }
379
380 void OnDragEnter(uint32_t window,
381 uint32_t key_state,
382 const gfx::Point& position,
383 uint32_t effect_bitmask,
384 const OnDragEnterCallback& callback) override {
385 NOTIMPLEMENTED();
386 }
387 void OnDragOver(uint32_t window,
388 uint32_t key_state,
389 const gfx::Point& position,
390 uint32_t effect_bitmask,
391 const OnDragOverCallback& callback) override {
392 NOTIMPLEMENTED();
393 }
394 void OnDragLeave(uint32_t window) override { NOTIMPLEMENTED(); }
395 void OnCompleteDrop(uint32_t window,
396 uint32_t key_state,
397 const gfx::Point& position,
398 uint32_t effect_bitmask,
399 const OnCompleteDropCallback& callback) override {
400 NOTIMPLEMENTED();
401 }
402 void OnDragDropDone() override { NOTIMPLEMENTED(); }
403
374 void OnChangeCompleted(uint32_t change_id, bool success) override { 404 void OnChangeCompleted(uint32_t change_id, bool success) override {
375 if (waiting_change_id_ == change_id && change_completed_run_loop_) { 405 if (waiting_change_id_ == change_id && change_completed_run_loop_) {
376 on_change_completed_result_ = success; 406 on_change_completed_result_ = success;
377 change_completed_run_loop_->Quit(); 407 change_completed_run_loop_->Quit();
378 } 408 }
379 } 409 }
380 void RequestClose(uint32_t window_id) override {} 410 void RequestClose(uint32_t window_id) override {}
381 void GetWindowManager(mojo::AssociatedInterfaceRequest<mojom::WindowManager> 411 void GetWindowManager(mojo::AssociatedInterfaceRequest<mojom::WindowManager>
382 internal) override { 412 internal) override {
383 window_manager_binding_.reset( 413 window_manager_binding_.reset(
(...skipping 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after
2044 2074
2045 // TODO(sky): make sure coverage of what was 2075 // TODO(sky): make sure coverage of what was
2046 // WindowManagerTest.SecondEmbedRoot_InitService and 2076 // WindowManagerTest.SecondEmbedRoot_InitService and
2047 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window 2077 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window
2048 // manager 2078 // manager
2049 // tests. 2079 // tests.
2050 2080
2051 } // namespace test 2081 } // namespace test
2052 } // namespace ws 2082 } // namespace ws
2053 } // namespace ui 2083 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/window_tree.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698