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

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

Issue 2759463002: aura-mus: create an interactive ui test for drag and drop. (Closed)
Patch Set: Merge with master 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
« no previous file with comments | « services/ui/test_wm/test_wm.cc ('k') | services/ui/ws/window_server_test_impl.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 SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_
6 #define SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_ 6 #define SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_
7 7
8 #include "services/ui/public/interfaces/window_server_test.mojom.h" 8 #include "services/ui/public/interfaces/window_server_test.mojom.h"
9 9
10 namespace ui { 10 namespace ui {
11 namespace ws { 11 namespace ws {
12 12
13 class ServerWindow; 13 class ServerWindow;
14 class WindowServer; 14 class WindowServer;
15 15
16 class WindowServerTestImpl : public mojom::WindowServerTest { 16 class WindowServerTestImpl : public mojom::WindowServerTest {
17 public: 17 public:
18 explicit WindowServerTestImpl(WindowServer* server); 18 explicit WindowServerTestImpl(WindowServer* server);
19 ~WindowServerTestImpl() override; 19 ~WindowServerTestImpl() override;
20 20
21 private: 21 private:
22 void OnWindowPaint(const std::string& name, 22 void OnWindowPaint(const std::string& name,
23 const EnsureClientHasDrawnWindowCallback& cb, 23 const EnsureClientHasDrawnWindowCallback& cb,
24 ServerWindow* window); 24 ServerWindow* window);
25 25
26 // mojom::WindowServerTest: 26 // mojom::WindowServerTest:
27 void EnsureClientHasDrawnWindow( 27 void EnsureClientHasDrawnWindow(
28 const std::string& client_name, 28 const std::string& client_name,
29 const EnsureClientHasDrawnWindowCallback& callback) override; 29 const EnsureClientHasDrawnWindowCallback& callback) override;
30 void DispatchEvent(int64_t display_id,
31 std::unique_ptr<ui::Event> event,
32 const DispatchEventCallback& cb) override;
30 33
31 WindowServer* window_server_; 34 WindowServer* window_server_;
32 35
33 DISALLOW_COPY_AND_ASSIGN(WindowServerTestImpl); 36 DISALLOW_COPY_AND_ASSIGN(WindowServerTestImpl);
34 }; 37 };
35 38
36 } // namespace ws 39 } // namespace ws
37 } // namespace ui 40 } // namespace ui
38 41
39 #endif // SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_ 42 #endif // SERVICES_UI_WS_WINDOW_SERVER_TEST_IMPL_H_
OLDNEW
« no previous file with comments | « services/ui/test_wm/test_wm.cc ('k') | services/ui/ws/window_server_test_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698