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

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

Issue 2248263003: Updates PointerEventRouter to handle switching move type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again 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
« no previous file with comments | « services/ui/ws/window_tree.cc ('k') | services/ui/ws/window_tree_unittest.cc » ('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 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 float old_opacity, 343 float old_opacity,
344 float new_opacity) override { 344 float new_opacity) override {
345 tracker()->OnWindowOpacityChanged(window, new_opacity); 345 tracker()->OnWindowOpacityChanged(window, new_opacity);
346 } 346 }
347 void OnWindowParentDrawnStateChanged(uint32_t window, bool drawn) override { 347 void OnWindowParentDrawnStateChanged(uint32_t window, bool drawn) override {
348 tracker()->OnWindowParentDrawnStateChanged(window, drawn); 348 tracker()->OnWindowParentDrawnStateChanged(window, drawn);
349 } 349 }
350 void OnWindowInputEvent(uint32_t event_id, 350 void OnWindowInputEvent(uint32_t event_id,
351 Id window_id, 351 Id window_id,
352 std::unique_ptr<ui::Event> event, 352 std::unique_ptr<ui::Event> event,
353 uint32_t event_observer_id) override { 353 bool matches_pointer_watcher) override {
354 // Ack input events to clear the state on the server. These can be received 354 // Ack input events to clear the state on the server. These can be received
355 // during test startup. X11Window::DispatchEvent sends a synthetic move 355 // during test startup. X11Window::DispatchEvent sends a synthetic move
356 // event to notify of entry. 356 // event to notify of entry.
357 tree()->OnWindowInputEventAck(event_id, mojom::EventResult::HANDLED); 357 tree()->OnWindowInputEventAck(event_id, mojom::EventResult::HANDLED);
358 // Don't log input events as none of the tests care about them and they 358 // Don't log input events as none of the tests care about them and they
359 // may come in at random points. 359 // may come in at random points.
360 } 360 }
361 void OnPointerEventObserved(std::unique_ptr<ui::Event>, 361 void OnPointerEventObserved(std::unique_ptr<ui::Event>,
362 uint32_t event_observer_id,
363 uint32_t window_id) override {} 362 uint32_t window_id) override {}
364 void OnWindowSharedPropertyChanged(uint32_t window, 363 void OnWindowSharedPropertyChanged(uint32_t window,
365 const String& name, 364 const String& name,
366 Array<uint8_t> new_data) override { 365 Array<uint8_t> new_data) override {
367 tracker_.OnWindowSharedPropertyChanged(window, name, std::move(new_data)); 366 tracker_.OnWindowSharedPropertyChanged(window, name, std::move(new_data));
368 } 367 }
369 // TODO(sky): add testing coverage. 368 // TODO(sky): add testing coverage.
370 void OnWindowFocused(uint32_t focused_window_id) override {} 369 void OnWindowFocused(uint32_t focused_window_id) override {}
371 void OnWindowPredefinedCursorChanged(uint32_t window_id, 370 void OnWindowPredefinedCursorChanged(uint32_t window_id,
372 mojom::Cursor cursor_id) override { 371 mojom::Cursor cursor_id) override {
(...skipping 1672 matching lines...) Expand 10 before | Expand all | Expand 10 after
2045 2044
2046 // TODO(sky): make sure coverage of what was 2045 // TODO(sky): make sure coverage of what was
2047 // WindowManagerTest.SecondEmbedRoot_InitService and 2046 // WindowManagerTest.SecondEmbedRoot_InitService and
2048 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window 2047 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window
2049 // manager 2048 // manager
2050 // tests. 2049 // tests.
2051 2050
2052 } // namespace test 2051 } // namespace test
2053 } // namespace ws 2052 } // namespace ws
2054 } // namespace ui 2053 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/window_tree.cc ('k') | services/ui/ws/window_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698