| OLD | NEW |
| 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 SERVICES_UI_WS_DISPLAY_H_ | 5 #ifndef SERVICES_UI_WS_DISPLAY_H_ |
| 6 #define SERVICES_UI_WS_DISPLAY_H_ | 6 #define SERVICES_UI_WS_DISPLAY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 int64_t GetId() const; | 68 int64_t GetId() const; |
| 69 | 69 |
| 70 DisplayManager* display_manager(); | 70 DisplayManager* display_manager(); |
| 71 const DisplayManager* display_manager() const; | 71 const DisplayManager* display_manager() const; |
| 72 | 72 |
| 73 PlatformDisplay* platform_display() { return platform_display_.get(); } | 73 PlatformDisplay* platform_display() { return platform_display_.get(); } |
| 74 | 74 |
| 75 // Returns a display::Display corresponding to this ws::Display. | 75 // Returns a display::Display corresponding to this ws::Display. |
| 76 display::Display ToDisplay() const; | 76 display::Display ToDisplay() const; |
| 77 | 77 |
| 78 // Schedules a paint for the specified region in the coordinates of |window|. | |
| 79 void SchedulePaint(const ServerWindow* window, const gfx::Rect& bounds); | |
| 80 | |
| 81 gfx::Size GetSize() const; | 78 gfx::Size GetSize() const; |
| 82 | 79 |
| 83 WindowServer* window_server() { return window_server_; } | 80 WindowServer* window_server() { return window_server_; } |
| 84 | 81 |
| 85 // Returns the root of the Display. The root's children are the roots | 82 // Returns the root of the Display. The root's children are the roots |
| 86 // of the corresponding WindowManagers. | 83 // of the corresponding WindowManagers. |
| 87 ServerWindow* root_window() { return root_.get(); } | 84 ServerWindow* root_window() { return root_.get(); } |
| 88 const ServerWindow* root_window() const { return root_.get(); } | 85 const ServerWindow* root_window() const { return root_.get(); } |
| 89 | 86 |
| 90 // Returns the ServerWindow whose id is |id|. This does not do a search over | 87 // Returns the ServerWindow whose id is |id|. This does not do a search over |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 198 |
| 202 WindowManagerDisplayRootMap window_manager_display_root_map_; | 199 WindowManagerDisplayRootMap window_manager_display_root_map_; |
| 203 | 200 |
| 204 DISALLOW_COPY_AND_ASSIGN(Display); | 201 DISALLOW_COPY_AND_ASSIGN(Display); |
| 205 }; | 202 }; |
| 206 | 203 |
| 207 } // namespace ws | 204 } // namespace ws |
| 208 } // namespace ui | 205 } // namespace ui |
| 209 | 206 |
| 210 #endif // SERVICES_UI_WS_DISPLAY_H_ | 207 #endif // SERVICES_UI_WS_DISPLAY_H_ |
| OLD | NEW |