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

Side by Side Diff: components/mus/public/cpp/tests/window_tree_client_private.h

Issue 2072343002: Changes how window manager obtains WindowTree from mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include Created 4 years, 6 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 COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_TREE_CLIENT_PRIVATE_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_TREE_CLIENT_PRIVATE_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_TREE_CLIENT_PRIVATE_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_TESTS_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 "components/mus/common/types.h"
14
15 namespace display {
16 class Display;
17 }
13 18
14 namespace ui { 19 namespace ui {
15 class Event; 20 class Event;
16 } 21 }
17 22
18 namespace mus { 23 namespace mus {
19 namespace mojom { 24 namespace mojom {
20 class WindowTree; 25 class WindowTree;
21 } 26 }
22 27
23 class Window; 28 class Window;
24 class WindowTreeClient; 29 class WindowTreeClient;
25 30
26 // Use to access implementation details of WindowTreeClient. 31 // Use to access implementation details of WindowTreeClient.
27 class WindowTreeClientPrivate { 32 class WindowTreeClientPrivate {
28 public: 33 public:
29 explicit WindowTreeClientPrivate(WindowTreeClient* tree_client_impl); 34 explicit WindowTreeClientPrivate(WindowTreeClient* tree_client_impl);
30 explicit WindowTreeClientPrivate(Window* window); 35 explicit WindowTreeClientPrivate(Window* window);
31 ~WindowTreeClientPrivate(); 36 ~WindowTreeClientPrivate();
32 37
33 uint32_t event_observer_id(); 38 uint32_t event_observer_id();
34 39
35 // Calls OnEmbed() on the WindowTreeClient. 40 // Calls OnEmbed() on the WindowTreeClient.
36 void OnEmbed(mojom::WindowTree* window_tree); 41 void OnEmbed(mojom::WindowTree* window_tree);
37 42
43 void CallWmNewDisplayAdded(const display::Display& display);
44
38 // Pretends that |event| has been received from the window server. 45 // Pretends that |event| has been received from the window server.
39 void CallOnWindowInputEvent(Window* window, std::unique_ptr<ui::Event> event); 46 void CallOnWindowInputEvent(Window* window, std::unique_ptr<ui::Event> event);
40 47
48 // Sets the WindowTree and client id.
49 void SetTreeAndClientId(mojom::WindowTree* window_tree,
50 ClientSpecificId client_id);
51
41 private: 52 private:
42 WindowTreeClient* tree_client_impl_; 53 WindowTreeClient* tree_client_impl_;
43 54
44 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientPrivate); 55 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientPrivate);
45 }; 56 };
46 57
47 } // namespace mus 58 } // namespace mus
48 59
49 #endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_TREE_CLIENT_PRIVATE_H_ 60 #endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_TREE_CLIENT_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698