Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 5 #ifndef CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
| 6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/public/browser/notification_types.h" | 9 #include "content/public/browser/notification_types.h" |
| 10 | 10 |
| (...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 888 // default profile image or no profile image at all. No details are expected. | 888 // default profile image or no profile image at all. No details are expected. |
| 889 NOTIFICATION_PROFILE_IMAGE_UPDATE_FAILED, | 889 NOTIFICATION_PROFILE_IMAGE_UPDATE_FAILED, |
| 890 | 890 |
| 891 // Sent when a chromium os user attempts to log in. The source is | 891 // Sent when a chromium os user attempts to log in. The source is |
| 892 // all and the details are AuthenticationNotificationDetails. | 892 // all and the details are AuthenticationNotificationDetails. |
| 893 NOTIFICATION_LOGIN_AUTHENTICATION, | 893 NOTIFICATION_LOGIN_AUTHENTICATION, |
| 894 | 894 |
| 895 // Sent when webui lock screen is ready. | 895 // Sent when webui lock screen is ready. |
| 896 NOTIFICATION_LOCK_WEBUI_READY, | 896 NOTIFICATION_LOCK_WEBUI_READY, |
| 897 | 897 |
| 898 // Sent when webui login screen is ready and gaia iframe has loaded. | 898 // Sent when GAIA iframe has been loaded. |
| 899 // First paint event after that fires NOTIFICATION_LOGIN_WEBUI_VISIBLE. | |
| 900 // Possible scenarios: | |
| 901 // 1. Boot into device that has user pods display disabled or no users. | |
| 902 // Note that booting with network not connected would first generate | |
| 903 // NOTIFICATION_LOGIN_NETWORK_ERROR_SHOWN. | |
| 904 // 2. From the user pods list, open "Add User" for the second time | |
| 905 // (see below). | |
| 906 // TODO(nkostylev): Send this notification any time "Add User" is activated | |
| 907 // even if it has been silently preloaded on boot. | |
| 908 // Not sent on "silent preload" i.e. when booting into login screen | |
| 909 // with user pods, GAIA frame is silently preloaded in the background. | |
| 910 // Activating it ("Add User") for the first time would not generate this | |
| 911 // notification. | |
| 899 NOTIFICATION_LOGIN_WEBUI_READY, | 912 NOTIFICATION_LOGIN_WEBUI_READY, |
| 900 | 913 |
| 901 // Sent when the user images on the WebUI login screen have all been loaded. | 914 // Sent when the user images on the WebUI login screen have all been loaded. |
| 915 // "Normal boot" i.e. for the device with at least one user would generate | |
| 916 // this one on boot. | |
| 917 // First paint event after that fires NOTIFICATION_LOGIN_WEBUI_VISIBLE. | |
| 902 NOTIFICATION_LOGIN_USER_IMAGES_LOADED, | 918 NOTIFICATION_LOGIN_USER_IMAGES_LOADED, |
| 903 | 919 |
| 904 // Sent when the login WebUI is considered to be fully visible. | 920 // Sent when a network error message is displayed on the WebUI login screen. |
| 905 // That momemnt is tracked as the first paint event after one of the: | 921 // First paint event of this screen fires NOTIFICATION_LOGIN_WEBUI_VISIBLE. |
| 922 NOTIFICATION_LOGIN_NETWORK_ERROR_SHOWN, | |
| 923 | |
| 924 // Sent when the first OOBE screen has been displayed. Note that the screen | |
| 925 // may not be fully rendered at this point. | |
| 926 // First paint event after this screen fires NOTIFICATION_LOGIN_WEBUI_VISIBLE. | |
|
Daniel Erat
2012/06/05 15:38:32
nit: s/screen //
Nikita (slow)
2012/06/05 16:33:50
Done.
| |
| 927 NOTIFICATION_WIZARD_FIRST_SCREEN_SHOWN, | |
| 928 | |
| 929 // Sent when the specific part of login WebUI is considered to be visible. | |
| 930 // That moment is tracked as the first paint event after one of the: | |
| 906 // 1. NOTIFICATION_LOGIN_USER_IMAGES_LOADED | 931 // 1. NOTIFICATION_LOGIN_USER_IMAGES_LOADED |
| 907 // 2. NOTIFICATION_LOGIN_WEBUI_READY | 932 // 2. NOTIFICATION_LOGIN_WEBUI_READY |
| 908 // 3. NOTIFICATION_LOGIN_NETWORK_ERROR_SHOWN | 933 // 3. NOTIFICATION_LOGIN_NETWORK_ERROR_SHOWN |
| 909 // 4. NOTIFICATION_WIZARD_FIRST_SCREEN_SHOWN | 934 // 4. NOTIFICATION_WIZARD_FIRST_SCREEN_SHOWN |
| 935 // | |
| 936 // Possible series of notifications: | |
| 937 // 1. Boot into fresh OOBE | |
| 938 // NOTIFICATION_WIZARD_FIRST_SCREEN_SHOWN | |
| 939 // NOTIFICATION_LOGIN_WEBUI_VISIBLE | |
| 940 // 2. Boot into user pods list (normal boot) | |
| 941 // NOTIFICATION_LOGIN_USER_IMAGES_LOADED | |
| 942 // NOTIFICATION_LOGIN_WEBUI_VISIBLE | |
| 943 // 3. Boot into GAIA sign in UI (user pods display disabled or no users): | |
| 944 // if no network is connected or flaky network | |
| 945 // (NOTIFICATION_LOGIN_NETWORK_ERROR_SHOWN + | |
| 946 // NOTIFICATION_LOGIN_WEBUI_VISIBLE) | |
| 947 // NOTIFICATION_LOGIN_WEBUI_READY | |
| 948 // NOTIFICATION_LOGIN_WEBUI_VISIBLE | |
| 910 NOTIFICATION_LOGIN_WEBUI_VISIBLE, | 949 NOTIFICATION_LOGIN_WEBUI_VISIBLE, |
| 911 | 950 |
| 912 // Sent when proxy dialog is closed. | 951 // Sent when proxy dialog is closed. |
| 913 NOTIFICATION_LOGIN_PROXY_CHANGED, | 952 NOTIFICATION_LOGIN_PROXY_CHANGED, |
| 914 | 953 |
| 915 // Sent when a network error message is displayed on the WebUI login screen. | |
| 916 NOTIFICATION_LOGIN_NETWORK_ERROR_SHOWN, | |
| 917 | |
| 918 // Sent when the user list has changed due to a policy change. | 954 // Sent when the user list has changed due to a policy change. |
| 919 NOTIFICATION_POLICY_USER_LIST_CHANGED, | 955 NOTIFICATION_POLICY_USER_LIST_CHANGED, |
| 920 | 956 |
| 921 // Sent when a panel state changed. | 957 // Sent when a panel state changed. |
| 922 NOTIFICATION_PANEL_STATE_CHANGED, | 958 NOTIFICATION_PANEL_STATE_CHANGED, |
| 923 | 959 |
| 924 // Sent when the window manager's layout mode has changed. | 960 // Sent when the window manager's layout mode has changed. |
| 925 NOTIFICATION_LAYOUT_MODE_CHANGED, | 961 NOTIFICATION_LAYOUT_MODE_CHANGED, |
| 926 | 962 |
| 927 // Sent when the first OOBE screen has been displayed. Note that the screen | |
| 928 // may not be fully rendered at this point. | |
| 929 NOTIFICATION_WIZARD_FIRST_SCREEN_SHOWN, | |
| 930 | |
| 931 // Sent when the screen lock state has changed. The source is | 963 // Sent when the screen lock state has changed. The source is |
| 932 // ScreenLocker and the details is a bool specifing that the | 964 // ScreenLocker and the details is a bool specifing that the |
| 933 // screen is locked. When details is a false, the source object | 965 // screen is locked. When details is a false, the source object |
| 934 // is being deleted, so the receiver shouldn't use the screen locker | 966 // is being deleted, so the receiver shouldn't use the screen locker |
| 935 // object. | 967 // object. |
| 936 NOTIFICATION_SCREEN_LOCK_STATE_CHANGED, | 968 NOTIFICATION_SCREEN_LOCK_STATE_CHANGED, |
| 937 | 969 |
| 938 // Sent when an attempt to acquire the public key of the owner of a chromium | 970 // Sent when an attempt to acquire the public key of the owner of a chromium |
| 939 // os device has succeeded. | 971 // os device has succeeded. |
| 940 NOTIFICATION_OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED, | 972 NOTIFICATION_OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED, |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1128 // Currently only Content and Chrome define and use notifications. | 1160 // Currently only Content and Chrome define and use notifications. |
| 1129 // Custom notifications not belonging to Content and Chrome should start | 1161 // Custom notifications not belonging to Content and Chrome should start |
| 1130 // from here. | 1162 // from here. |
| 1131 NOTIFICATION_CHROME_END, | 1163 NOTIFICATION_CHROME_END, |
| 1132 }; | 1164 }; |
| 1133 | 1165 |
| 1134 } // namespace chrome | 1166 } // namespace chrome |
| 1135 | 1167 |
| 1136 | 1168 |
| 1137 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1169 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
| OLD | NEW |