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

Side by Side Diff: components/mus/ws/window_tree_apptest.cc

Issue 1749323002: Update WindowTree::OnWindowInputEventAck to include handled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missing Component Build DEPS Created 4 years, 9 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 | « components/mus/ws/window_tree.cc ('k') | components/mus/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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 } 348 }
349 void OnWindowDrawnStateChanged(uint32_t window, bool drawn) override { 349 void OnWindowDrawnStateChanged(uint32_t window, bool drawn) override {
350 tracker()->OnWindowDrawnStateChanged(window, drawn); 350 tracker()->OnWindowDrawnStateChanged(window, drawn);
351 } 351 }
352 void OnWindowInputEvent(uint32_t event_id, 352 void OnWindowInputEvent(uint32_t event_id,
353 Id window_id, 353 Id window_id,
354 EventPtr event) override { 354 EventPtr event) override {
355 // Ack input events to clear the state on the server. These can be received 355 // Ack input events to clear the state on the server. These can be received
356 // during test startup. X11Window::DispatchEvent sends a synthetic move 356 // during test startup. X11Window::DispatchEvent sends a synthetic move
357 // event to notify of entry. 357 // event to notify of entry.
358 tree()->OnWindowInputEventAck(event_id); 358 tree()->OnWindowInputEventAck(event_id, true);
359 // Don't log input events as none of the tests care about them and they 359 // Don't log input events as none of the tests care about them and they
360 // may come in at random points. 360 // may come in at random points.
361 } 361 }
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 {}
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1924 1924
1925 // TODO(sky): make sure coverage of what was 1925 // TODO(sky): make sure coverage of what was
1926 // WindowManagerTest.SecondEmbedRoot_InitService and 1926 // WindowManagerTest.SecondEmbedRoot_InitService and
1927 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window 1927 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window
1928 // manager 1928 // manager
1929 // tests. 1929 // tests.
1930 1930
1931 } // namespace test 1931 } // namespace test
1932 } // namespace ws 1932 } // namespace ws
1933 } // namespace mus 1933 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/window_tree.cc ('k') | components/mus/ws/window_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698