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

Side by Side Diff: components/exo/display.h

Issue 2065133002: exo: Implement notification surface support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@notification-wayland-protocol
Patch Set: address comments from reveman 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
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_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;
28 class NotificationSurfaceManager;
26 class SharedMemory; 29 class SharedMemory;
27 class ShellSurface; 30 class ShellSurface;
28 class SubSurface; 31 class SubSurface;
29 class Surface; 32 class Surface;
30 33
31 #if defined(USE_OZONE) 34 #if defined(USE_OZONE)
32 class Buffer; 35 class Buffer;
33 #endif 36 #endif
34 37
35 // The core display class. This class provides functions for creating surfaces 38 // The core display class. This class provides functions for creating surfaces
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 74
72 // Creates a remote shell surface for an existing surface using |container|. 75 // Creates a remote shell surface for an existing surface using |container|.
73 std::unique_ptr<ShellSurface> CreateRemoteShellSurface(Surface* surface, 76 std::unique_ptr<ShellSurface> CreateRemoteShellSurface(Surface* surface,
74 int container); 77 int container);
75 78
76 // Creates a sub-surface for an existing surface. The sub-surface will be 79 // Creates a sub-surface for an existing surface. The sub-surface will be
77 // a child of |parent|. 80 // a child of |parent|.
78 std::unique_ptr<SubSurface> CreateSubSurface(Surface* surface, 81 std::unique_ptr<SubSurface> CreateSubSurface(Surface* surface,
79 Surface* parent); 82 Surface* parent);
80 83
84 // Creates a notification surface for a surface and notification id.
85 std::unique_ptr<NotificationSurface> CreateNotificationSurface(
86 Surface* surface,
87 const std::string& notification_id);
88
89 // Sets a NotificationSurfaceManager.
90 void SetNotificationSurfaceManager(
91 std::unique_ptr<NotificationSurfaceManager> notification_surface_manager);
reveman 2016/06/23 16:34:53 nit: please change this to a raw pointer and have
xiyuan 2016/06/23 17:46:09 Sure. Since we would use a raw const pointer, it c
92
81 private: 93 private:
94 std::unique_ptr<NotificationSurfaceManager> notification_surface_manager_;
reveman 2016/06/23 16:34:53 nit: NotificationSurfaceManager* const notificatio
xiyuan 2016/06/23 17:46:09 Done.
95
82 DISALLOW_COPY_AND_ASSIGN(Display); 96 DISALLOW_COPY_AND_ASSIGN(Display);
83 }; 97 };
84 98
85 } // namespace exo 99 } // namespace exo
86 100
87 #endif // COMPONENTS_EXO_DISPLAY_H_ 101 #endif // COMPONENTS_EXO_DISPLAY_H_
OLDNEW
« no previous file with comments | « components/exo/BUILD.gn ('k') | components/exo/display.cc » ('j') | components/exo/display.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698