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

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

Issue 2125663002: mus: Add watcher for all touch events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Overload copy assignment operator for Change struct. Created 4 years, 5 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 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 float old_opacity, 342 float old_opacity,
343 float new_opacity) override { 343 float new_opacity) override {
344 tracker()->OnWindowOpacityChanged(window, new_opacity); 344 tracker()->OnWindowOpacityChanged(window, new_opacity);
345 } 345 }
346 void OnWindowParentDrawnStateChanged(uint32_t window, bool drawn) override { 346 void OnWindowParentDrawnStateChanged(uint32_t window, bool drawn) override {
347 tracker()->OnWindowParentDrawnStateChanged(window, drawn); 347 tracker()->OnWindowParentDrawnStateChanged(window, drawn);
348 } 348 }
349 void OnWindowInputEvent(uint32_t event_id, 349 void OnWindowInputEvent(uint32_t event_id,
350 Id window_id, 350 Id window_id,
351 std::unique_ptr<ui::Event> event, 351 std::unique_ptr<ui::Event> event,
352 uint32_t event_observer_id) override { 352 mojo::Array<uint32_t> event_observer_id) override {
353 // Ack input events to clear the state on the server. These can be received 353 // Ack input events to clear the state on the server. These can be received
354 // during test startup. X11Window::DispatchEvent sends a synthetic move 354 // during test startup. X11Window::DispatchEvent sends a synthetic move
355 // event to notify of entry. 355 // event to notify of entry.
356 tree()->OnWindowInputEventAck(event_id, mojom::EventResult::HANDLED); 356 tree()->OnWindowInputEventAck(event_id, mojom::EventResult::HANDLED);
357 // Don't log input events as none of the tests care about them and they 357 // Don't log input events as none of the tests care about them and they
358 // may come in at random points. 358 // may come in at random points.
359 } 359 }
360 void OnEventObserved(std::unique_ptr<ui::Event>, 360 void OnEventObserved(std::unique_ptr<ui::Event>,
361 uint32_t event_observer_id) override {} 361 mojo::Array<uint32_t> event_observer_id) override {}
362 void OnWindowSharedPropertyChanged(uint32_t window, 362 void OnWindowSharedPropertyChanged(uint32_t window,
363 const String& name, 363 const String& name,
364 Array<uint8_t> new_data) override { 364 Array<uint8_t> new_data) override {
365 tracker_.OnWindowSharedPropertyChanged(window, name, std::move(new_data)); 365 tracker_.OnWindowSharedPropertyChanged(window, name, std::move(new_data));
366 } 366 }
367 // TODO(sky): add testing coverage. 367 // TODO(sky): add testing coverage.
368 void OnWindowFocused(uint32_t focused_window_id) override {} 368 void OnWindowFocused(uint32_t focused_window_id) override {}
369 void OnWindowPredefinedCursorChanged(uint32_t window_id, 369 void OnWindowPredefinedCursorChanged(uint32_t window_id,
370 mojom::Cursor cursor_id) override { 370 mojom::Cursor cursor_id) override {
371 tracker_.OnWindowPredefinedCursorChanged(window_id, cursor_id); 371 tracker_.OnWindowPredefinedCursorChanged(window_id, cursor_id);
(...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
2040 2040
2041 // TODO(sky): make sure coverage of what was 2041 // TODO(sky): make sure coverage of what was
2042 // WindowManagerTest.SecondEmbedRoot_InitService and 2042 // WindowManagerTest.SecondEmbedRoot_InitService and
2043 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window 2043 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window
2044 // manager 2044 // manager
2045 // tests. 2045 // tests.
2046 2046
2047 } // namespace test 2047 } // namespace test
2048 } // namespace ws 2048 } // namespace ws
2049 } // namespace ui 2049 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698