0aea519d0ba87c11430d2207d4214c426b54bf23
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / common / xwalk_notification_types.h
1 // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef XWALK_RUNTIME_COMMON_XWALK_NOTIFICATION_TYPES_H_
6 #define XWALK_RUNTIME_COMMON_XWALK_NOTIFICATION_TYPES_H_
7
8 #include "build/build_config.h"
9 #include "content/public/browser/notification_types.h"
10
11 namespace xwalk {
12
13 enum NotificationType {
14   NOTIFICATION_XWALK_START = content::NOTIFICATION_CONTENT_END,
15
16   // Notify that a new Runtime instance is created. The source is a
17   // Source<Runtime> containing the affected Runtime. No details is provided.
18   NOTIFICATION_RUNTIME_OPENED = NOTIFICATION_XWALK_START,
19
20   // Notify that a Runtime instance is close. The source is a Source<Runtime>
21   // containing the affected Runtime. No details is provided.
22   NOTIFICATION_RUNTIME_CLOSED,
23
24   // Notify that fullscreen state of a NativeAppWindow is changed.
25   NOTIFICATION_FULLSCREEN_CHANGED,
26
27   NOTIFICATION_XWALK_END,
28 };
29
30 }  // namespace xwalk
31
32 #endif  // XWALK_RUNTIME_COMMON_XWALK_NOTIFICATION_TYPES_H_