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

Side by Side Diff: components/mus/ws/test_utils.h

Issue 1883263002: mash: Repost mouse pressed event when closing Ash system tray (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 8 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/test_change_tracker.cc ('k') | components/mus/ws/test_utils.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 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 #ifndef COMPONENTS_MUS_WS_TEST_UTILS_H_ 5 #ifndef COMPONENTS_MUS_WS_TEST_UTILS_H_
6 #define COMPONENTS_MUS_WS_TEST_UTILS_H_ 6 #define COMPONENTS_MUS_WS_TEST_UTILS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 WindowTreeTestApi(WindowTree* tree); 69 WindowTreeTestApi(WindowTree* tree);
70 ~WindowTreeTestApi(); 70 ~WindowTreeTestApi();
71 71
72 void set_window_manager_internal(mojom::WindowManager* wm_internal) { 72 void set_window_manager_internal(mojom::WindowManager* wm_internal) {
73 tree_->window_manager_internal_ = wm_internal; 73 tree_->window_manager_internal_ = wm_internal;
74 } 74 }
75 75
76 void ClearAck() { tree_->event_ack_id_ = 0; } 76 void ClearAck() { tree_->event_ack_id_ = 0; }
77 void EnableCapture() { tree_->event_ack_id_ = 1u; } 77 void EnableCapture() { tree_->event_ack_id_ = 1u; }
78 78
79 void OnWindowInputEventAck(uint32_t event_id, mojom::EventResult result) {
80 tree_->OnWindowInputEventAck(event_id, result);
81 }
82
79 private: 83 private:
80 WindowTree* tree_; 84 WindowTree* tree_;
81 85
82 DISALLOW_COPY_AND_ASSIGN(WindowTreeTestApi); 86 DISALLOW_COPY_AND_ASSIGN(WindowTreeTestApi);
83 }; 87 };
84 88
85 // ----------------------------------------------------------------------------- 89 // -----------------------------------------------------------------------------
86 90
87 class DisplayTestApi { 91 class DisplayTestApi {
88 public: 92 public:
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 404
401 // Creates a new visible window as a child of the single root of |tree|. 405 // Creates a new visible window as a child of the single root of |tree|.
402 // |client_id| set to the ClientWindowId of the new window. 406 // |client_id| set to the ClientWindowId of the new window.
403 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); 407 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id);
404 408
405 } // namespace test 409 } // namespace test
406 } // namespace ws 410 } // namespace ws
407 } // namespace mus 411 } // namespace mus
408 412
409 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_ 413 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « components/mus/ws/test_change_tracker.cc ('k') | components/mus/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698