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

Side by Side Diff: ui/aura/mus/window_port_mus.h

Issue 2495423005: Enables passing initial properties to top level window creation (Closed)
Patch Set: cleanup 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 UI_AURA_MUS_WINDOW_PORT_MUS_H_ 5 #ifndef UI_AURA_MUS_WINDOW_PORT_MUS_H_
6 #define UI_AURA_MUS_WINDOW_PORT_MUS_H_ 6 #define UI_AURA_MUS_WINDOW_PORT_MUS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 12 matching lines...) Expand all
23 #include "ui/platform_window/mojo/text_input_state.mojom.h" 23 #include "ui/platform_window/mojo/text_input_state.mojom.h"
24 24
25 namespace aura { 25 namespace aura {
26 26
27 class PropertyConverter; 27 class PropertyConverter;
28 class SurfaceIdHandler; 28 class SurfaceIdHandler;
29 class Window; 29 class Window;
30 class WindowPortMusTestApi; 30 class WindowPortMusTestApi;
31 class WindowTreeClient; 31 class WindowTreeClient;
32 class WindowTreeClientPrivate; 32 class WindowTreeClientPrivate;
33 class WindowTreeHostMus;
33 34
34 // WindowPortMus is a WindowPort that forwards calls to WindowTreeClient 35 // WindowPortMus is a WindowPort that forwards calls to WindowTreeClient
35 // so that changes are propagated to the server. All changes from 36 // so that changes are propagated to the server. All changes from
36 // WindowTreeClient to the underlying Window route through this class (by 37 // WindowTreeClient to the underlying Window route through this class (by
37 // way of WindowMus) and are done in such a way that they don't result in 38 // way of WindowMus) and are done in such a way that they don't result in
38 // calling back to WindowTreeClient. 39 // calling back to WindowTreeClient.
39 class AURA_EXPORT WindowPortMus : public WindowPort, public WindowMus { 40 class AURA_EXPORT WindowPortMus : public WindowPort, public WindowMus {
40 public: 41 public:
41 // See WindowMus's constructor for details on |window_mus_type|. 42 // See WindowMus's constructor for details on |window_mus_type|.
42 WindowPortMus(WindowTreeClient* client, WindowMusType window_mus_type); 43 WindowPortMus(WindowTreeClient* client, WindowMusType window_mus_type);
(...skipping 21 matching lines...) Expand all
64 compositor_frame_sink_binding); 65 compositor_frame_sink_binding);
65 66
66 void set_surface_id_handler(SurfaceIdHandler* surface_id_handler) { 67 void set_surface_id_handler(SurfaceIdHandler* surface_id_handler) {
67 surface_id_handler_ = surface_id_handler; 68 surface_id_handler_ = surface_id_handler;
68 } 69 }
69 70
70 private: 71 private:
71 friend class WindowPortMusTestApi; 72 friend class WindowPortMusTestApi;
72 friend class WindowTreeClient; 73 friend class WindowTreeClient;
73 friend class WindowTreeClientPrivate; 74 friend class WindowTreeClientPrivate;
75 friend class WindowTreeHostMus;
74 76
75 using ServerChangeIdType = uint8_t; 77 using ServerChangeIdType = uint8_t;
76 78
77 // Changes to the underlying Window originating from the server must be done 79 // Changes to the underlying Window originating from the server must be done
78 // in such a way that the same change is not applied back to the server. To 80 // in such a way that the same change is not applied back to the server. To
79 // accomplish this every changes from the server is associated with at least 81 // accomplish this every changes from the server is associated with at least
80 // one ServerChange. If the underlying Window ends up calling back to this 82 // one ServerChange. If the underlying Window ends up calling back to this
81 // class and the change is expected then the change is ignored and not sent to 83 // class and the change is expected then the change is ignored and not sent to
82 // the server. For example, here's the flow when the server changes the 84 // the server. For example, here's the flow when the server changes the
83 // bounds: 85 // bounds:
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 std::unique_ptr<SurfaceInfo> surface_info_; 227 std::unique_ptr<SurfaceInfo> surface_info_;
226 228
227 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL; 229 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL;
228 230
229 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); 231 DISALLOW_COPY_AND_ASSIGN(WindowPortMus);
230 }; 232 };
231 233
232 } // namespace aura 234 } // namespace aura
233 235
234 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ 236 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698