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

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

Issue 2430653002: Mus+Ash: Towards Unifying CompositorFrameSink terminology (Closed)
Patch Set: Updated Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SERVER_WINDOW_H_ 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_H_
6 #define SERVICES_UI_WS_SERVER_WINDOW_H_ 6 #define SERVICES_UI_WS_SERVER_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/observer_list.h" 16 #include "base/observer_list.h"
17 #include "mojo/public/cpp/bindings/binding.h" 17 #include "mojo/public/cpp/bindings/binding.h"
18 #include "services/ui/public/interfaces/surface.mojom.h"
19 #include "services/ui/public/interfaces/window_tree.mojom.h" 18 #include "services/ui/public/interfaces/window_tree.mojom.h"
20 #include "services/ui/ws/ids.h" 19 #include "services/ui/ws/ids.h"
21 #include "services/ui/ws/server_window_surface.h" 20 #include "services/ui/ws/server_window_surface.h"
22 #include "ui/gfx/geometry/insets.h" 21 #include "ui/gfx/geometry/insets.h"
23 #include "ui/gfx/geometry/rect.h" 22 #include "ui/gfx/geometry/rect.h"
24 #include "ui/gfx/geometry/vector2d.h" 23 #include "ui/gfx/geometry/vector2d.h"
25 #include "ui/gfx/transform.h" 24 #include "ui/gfx/transform.h"
26 #include "ui/platform_window/text_input_state.h" 25 #include "ui/platform_window/text_input_state.h"
27 26
28 namespace ui { 27 namespace ui {
(...skipping 23 matching lines...) Expand all
52 ServerWindow(ServerWindowDelegate* delegate, 51 ServerWindow(ServerWindowDelegate* delegate,
53 const WindowId& id, 52 const WindowId& id,
54 const Properties& properties); 53 const Properties& properties);
55 ~ServerWindow(); 54 ~ServerWindow();
56 55
57 void AddObserver(ServerWindowObserver* observer); 56 void AddObserver(ServerWindowObserver* observer);
58 void RemoveObserver(ServerWindowObserver* observer); 57 void RemoveObserver(ServerWindowObserver* observer);
59 bool HasObserver(ServerWindowObserver* observer); 58 bool HasObserver(ServerWindowObserver* observer);
60 59
61 // Creates a new surface of the specified type, replacing the existing. 60 // Creates a new surface of the specified type, replacing the existing.
62 void CreateSurface(mojom::SurfaceType surface_type, 61 void CreateSurface(
63 mojo::InterfaceRequest<mojom::Surface> request, 62 mojom::SurfaceType surface_type,
64 mojom::SurfaceClientPtr client); 63 mojo::InterfaceRequest<cc::mojom::MojoCompositorFrameSink> request,
64 cc::mojom::MojoCompositorFrameSinkClientPtr client);
65 65
66 const WindowId& id() const { return id_; } 66 const WindowId& id() const { return id_; }
67 67
68 void Add(ServerWindow* child); 68 void Add(ServerWindow* child);
69 void Remove(ServerWindow* child); 69 void Remove(ServerWindow* child);
70 void Reorder(ServerWindow* relative, mojom::OrderDirection diretion); 70 void Reorder(ServerWindow* relative, mojom::OrderDirection diretion);
71 void StackChildAtBottom(ServerWindow* child); 71 void StackChildAtBottom(ServerWindow* child);
72 void StackChildAtTop(ServerWindow* child); 72 void StackChildAtTop(ServerWindow* child);
73 73
74 const gfx::Rect& bounds() const { return bounds_; } 74 const gfx::Rect& bounds() const { return bounds_; }
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 251
252 base::ObserverList<ServerWindowObserver> observers_; 252 base::ObserverList<ServerWindowObserver> observers_;
253 253
254 DISALLOW_COPY_AND_ASSIGN(ServerWindow); 254 DISALLOW_COPY_AND_ASSIGN(ServerWindow);
255 }; 255 };
256 256
257 } // namespace ws 257 } // namespace ws
258 } // namespace ui 258 } // namespace ui
259 259
260 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ 260 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698