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

Side by Side Diff: ui/aura/test/mus/window_tree_client_private.h

Issue 2445163002: Make aura work with mus (Closed)
Patch Set: NON_EXPORTED_BASE_CLASS Created 4 years, 1 month 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_PUBLIC_CPP_TESTS_WINDOW_TREE_CLIENT_PRIVATE_H_ 5 #ifndef UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_
6 #define SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_TREE_CLIENT_PRIVATE_H_ 6 #define UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "services/ui/common/types.h" 13 #include "ui/aura/mus/mus_types.h"
14 14
15 namespace display { 15 namespace display {
16 class Display; 16 class Display;
17 } 17 }
18 18
19 namespace ui { 19 namespace ui {
20 class Event; 20 class Event;
21 }
22 21
23 namespace ui {
24 namespace mojom { 22 namespace mojom {
25 class WindowTree; 23 class WindowTree;
26 } 24 }
25 }
26
27 namespace aura {
27 28
28 class Window; 29 class Window;
29 class WindowTreeClient; 30 class WindowTreeClient;
31 class WindowTreeHost;
30 32
31 // Use to access implementation details of WindowTreeClient. 33 // Use to access implementation details of WindowTreeClient.
32 class WindowTreeClientPrivate { 34 class WindowTreeClientPrivate {
33 public: 35 public:
34 explicit WindowTreeClientPrivate(WindowTreeClient* tree_client_impl); 36 explicit WindowTreeClientPrivate(WindowTreeClient* tree_client_impl);
35 explicit WindowTreeClientPrivate(Window* window); 37 explicit WindowTreeClientPrivate(Window* window);
36 ~WindowTreeClientPrivate(); 38 ~WindowTreeClientPrivate();
37 39
38 // Calls OnEmbed() on the WindowTreeClient. 40 // Calls OnEmbed() on the WindowTreeClient.
39 void OnEmbed(mojom::WindowTree* window_tree); 41 void OnEmbed(ui::mojom::WindowTree* window_tree);
40 42
41 void CallWmNewDisplayAdded(const display::Display& display); 43 WindowTreeHost* CallWmNewDisplayAdded(const display::Display& display);
42 44
43 // Pretends that |event| has been received from the window server. 45 // Pretends that |event| has been received from the window server.
44 void CallOnWindowInputEvent(Window* window, std::unique_ptr<ui::Event> event); 46 void CallOnWindowInputEvent(Window* window, std::unique_ptr<ui::Event> event);
45 47
46 void CallOnCaptureChanged(Window* new_capture, Window* old_capture); 48 void CallOnCaptureChanged(Window* new_capture, Window* old_capture);
47 49
48 // Sets the WindowTree and client id. 50 // Sets the WindowTree and client id.
49 void SetTreeAndClientId(mojom::WindowTree* window_tree, 51 void SetTreeAndClientId(ui::mojom::WindowTree* window_tree,
50 ClientSpecificId client_id); 52 ClientSpecificId client_id);
51 53
52 bool HasPointerWatcher(); 54 bool HasPointerWatcher();
53 55
54 private: 56 private:
55 WindowTreeClient* tree_client_impl_; 57 WindowTreeClient* tree_client_impl_;
56 uint16_t next_window_id_ = 1u; 58 uint16_t next_window_id_ = 1u;
57 59
58 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientPrivate); 60 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientPrivate);
59 }; 61 };
60 62
61 } // namespace ui 63 } // namespace ui
62 64
63 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_TREE_CLIENT_PRIVATE_H_ 65 #endif // UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_
OLDNEW
« no previous file with comments | « ui/aura/test/mus/test_window_tree_client_setup.cc ('k') | ui/aura/test/mus/window_tree_client_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698