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 COMPONENTS_EXO_DISPLAY_H_ | 5 #ifndef COMPONENTS_EXO_DISPLAY_H_ |
6 #define COMPONENTS_EXO_DISPLAY_H_ | 6 #define COMPONENTS_EXO_DISPLAY_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
| 11 #include <string> |
11 | 12 |
12 #include "base/macros.h" | 13 #include "base/macros.h" |
13 #include "base/memory/shared_memory_handle.h" | 14 #include "base/memory/shared_memory_handle.h" |
14 | 15 |
15 #if defined(USE_OZONE) | 16 #if defined(USE_OZONE) |
16 #include "base/files/scoped_file.h" | 17 #include "base/files/scoped_file.h" |
17 #include "ui/gfx/buffer_types.h" | 18 #include "ui/gfx/buffer_types.h" |
18 #include "ui/gfx/geometry/size.h" | 19 #include "ui/gfx/geometry/size.h" |
19 #endif | 20 #endif |
20 | 21 |
21 namespace gfx { | 22 namespace gfx { |
22 class Point; | 23 class Point; |
23 } | 24 } |
24 | 25 |
25 namespace exo { | 26 namespace exo { |
| 27 class NotificationSurface; |
26 class SharedMemory; | 28 class SharedMemory; |
27 class ShellSurface; | 29 class ShellSurface; |
28 class SubSurface; | 30 class SubSurface; |
29 class Surface; | 31 class Surface; |
30 | 32 |
31 #if defined(USE_OZONE) | 33 #if defined(USE_OZONE) |
32 class Buffer; | 34 class Buffer; |
33 #endif | 35 #endif |
34 | 36 |
35 // The core display class. This class provides functions for creating surfaces | 37 // The core display class. This class provides functions for creating surfaces |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 73 |
72 // Creates a remote shell surface for an existing surface using |container|. | 74 // Creates a remote shell surface for an existing surface using |container|. |
73 std::unique_ptr<ShellSurface> CreateRemoteShellSurface(Surface* surface, | 75 std::unique_ptr<ShellSurface> CreateRemoteShellSurface(Surface* surface, |
74 int container); | 76 int container); |
75 | 77 |
76 // Creates a sub-surface for an existing surface. The sub-surface will be | 78 // Creates a sub-surface for an existing surface. The sub-surface will be |
77 // a child of |parent|. | 79 // a child of |parent|. |
78 std::unique_ptr<SubSurface> CreateSubSurface(Surface* surface, | 80 std::unique_ptr<SubSurface> CreateSubSurface(Surface* surface, |
79 Surface* parent); | 81 Surface* parent); |
80 | 82 |
| 83 // Creates a notification surface for a surface and notification id. |
| 84 std::unique_ptr<NotificationSurface> CreateNotificationSurface( |
| 85 Surface* surface, |
| 86 const std::string& notification_id); |
| 87 |
81 private: | 88 private: |
82 DISALLOW_COPY_AND_ASSIGN(Display); | 89 DISALLOW_COPY_AND_ASSIGN(Display); |
83 }; | 90 }; |
84 | 91 |
85 } // namespace exo | 92 } // namespace exo |
86 | 93 |
87 #endif // COMPONENTS_EXO_DISPLAY_H_ | 94 #endif // COMPONENTS_EXO_DISPLAY_H_ |
OLD | NEW |