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

Side by Side Diff: components/mus/ws/display.h

Issue 2081253002: Implement rudimentary touchscreen support in mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing pure virtual. 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
« no previous file with comments | « components/mus/ws/BUILD.gn ('k') | components/mus/ws/display.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_WS_DISPLAY_H_ 5 #ifndef COMPONENTS_MUS_WS_DISPLAY_H_
6 #define COMPONENTS_MUS_WS_DISPLAY_H_ 6 #define COMPONENTS_MUS_WS_DISPLAY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // Schedules a paint for the specified region in the coordinates of |window|. 78 // Schedules a paint for the specified region in the coordinates of |window|.
79 void SchedulePaint(const ServerWindow* window, const gfx::Rect& bounds); 79 void SchedulePaint(const ServerWindow* window, const gfx::Rect& bounds);
80 80
81 // Schedules destruction of surfaces in |window|. If a frame has been 81 // Schedules destruction of surfaces in |window|. If a frame has been
82 // scheduled but not drawn surface destruction is delayed until the frame is 82 // scheduled but not drawn surface destruction is delayed until the frame is
83 // drawn, otherwise destruction is immediate. 83 // drawn, otherwise destruction is immediate.
84 void ScheduleSurfaceDestruction(ServerWindow* window); 84 void ScheduleSurfaceDestruction(ServerWindow* window);
85 85
86 mojom::Rotation GetRotation() const; 86 mojom::Rotation GetRotation() const;
87 gfx::Size GetSize() const;
88
89 // Returns the id for the corresponding id.
90 int64_t GetPlatformDisplayId() const;
87 91
88 WindowServer* window_server() { return window_server_; } 92 WindowServer* window_server() { return window_server_; }
89 93
90 // Returns the root of the Display. The root's children are the roots 94 // Returns the root of the Display. The root's children are the roots
91 // of the corresponding WindowManagers. 95 // of the corresponding WindowManagers.
92 ServerWindow* root_window() { return root_.get(); } 96 ServerWindow* root_window() { return root_.get(); }
93 const ServerWindow* root_window() const { return root_.get(); } 97 const ServerWindow* root_window() const { return root_.get(); }
94 98
95 ServerWindow* GetRootWithId(const WindowId& id); 99 ServerWindow* GetRootWithId(const WindowId& id);
96 100
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 210
207 WindowManagerStateMap window_manager_state_map_; 211 WindowManagerStateMap window_manager_state_map_;
208 212
209 DISALLOW_COPY_AND_ASSIGN(Display); 213 DISALLOW_COPY_AND_ASSIGN(Display);
210 }; 214 };
211 215
212 } // namespace ws 216 } // namespace ws
213 } // namespace mus 217 } // namespace mus
214 218
215 #endif // COMPONENTS_MUS_WS_DISPLAY_H_ 219 #endif // COMPONENTS_MUS_WS_DISPLAY_H_
OLDNEW
« no previous file with comments | « components/mus/ws/BUILD.gn ('k') | components/mus/ws/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698