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

Side by Side Diff: services/ui/ws/test_utils.h

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Address review issues Created 3 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
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 SERVICES_UI_WS_TEST_UTILS_H_ 5 #ifndef SERVICES_UI_WS_TEST_UTILS_H_
6 #define SERVICES_UI_WS_TEST_UTILS_H_ 6 #define SERVICES_UI_WS_TEST_UTILS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 DISALLOW_COPY_AND_ASSIGN(WindowTreeTestApi); 131 DISALLOW_COPY_AND_ASSIGN(WindowTreeTestApi);
132 }; 132 };
133 133
134 // ----------------------------------------------------------------------------- 134 // -----------------------------------------------------------------------------
135 135
136 class DisplayTestApi { 136 class DisplayTestApi {
137 public: 137 public:
138 explicit DisplayTestApi(Display* display); 138 explicit DisplayTestApi(Display* display);
139 ~DisplayTestApi(); 139 ~DisplayTestApi();
140 140
141 void OnEvent(const ui::Event& event) { display_->OnEvent(event); } 141 void OnEvent(ui::Event* event) { display_->OnEventFromSource(event); }
142 142
143 mojom::Cursor last_cursor() const { return display_->last_cursor_; } 143 mojom::Cursor last_cursor() const { return display_->last_cursor_; }
144 144
145 private: 145 private:
146 Display* display_; 146 Display* display_;
147 147
148 DISALLOW_COPY_AND_ASSIGN(DisplayTestApi); 148 DISALLOW_COPY_AND_ASSIGN(DisplayTestApi);
149 }; 149 };
150 150
151 // ----------------------------------------------------------------------------- 151 // -----------------------------------------------------------------------------
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); 689 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id);
690 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, 690 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree,
691 ServerWindow* parent, 691 ServerWindow* parent,
692 ClientWindowId* client_id = nullptr); 692 ClientWindowId* client_id = nullptr);
693 693
694 } // namespace test 694 } // namespace test
695 } // namespace ws 695 } // namespace ws
696 } // namespace ui 696 } // namespace ui
697 697
698 #endif // SERVICES_UI_WS_TEST_UTILS_H_ 698 #endif // SERVICES_UI_WS_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698