OLD | NEW |
1 // Copyright (c) 2011 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_VIEW_TYPE_H_ | 5 #ifndef CHROME_COMMON_CHROME_VIEW_TYPE_H_ |
6 #define CHROME_COMMON_CHROME_VIEW_TYPE_H_ | 6 #define CHROME_COMMON_CHROME_VIEW_TYPE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "content/public/common/view_type.h" | 9 #include "content/public/common/view_type.h" |
10 | 10 |
11 namespace chrome { | 11 namespace chrome { |
12 | 12 |
13 // Indicates different types of views. | 13 // Indicates different types of views. |
14 enum ViewType { | 14 enum ViewType { |
15 VIEW_TYPE_CHROME_START = content::VIEW_TYPE_CONTENT_END, | 15 VIEW_TYPE_CHROME_START = content::VIEW_TYPE_CONTENT_END, |
16 | 16 |
17 VIEW_TYPE_BACKGROUND_CONTENTS, | 17 VIEW_TYPE_BACKGROUND_CONTENTS, |
18 VIEW_TYPE_EXTENSION_BACKGROUND_PAGE, | 18 VIEW_TYPE_EXTENSION_BACKGROUND_PAGE, |
19 VIEW_TYPE_EXTENSION_POPUP, | 19 VIEW_TYPE_EXTENSION_POPUP, |
20 VIEW_TYPE_EXTENSION_INFOBAR, | 20 VIEW_TYPE_EXTENSION_INFOBAR, |
21 VIEW_TYPE_NOTIFICATION, | 21 VIEW_TYPE_NOTIFICATION, |
22 VIEW_TYPE_EXTENSION_DIALOG, | 22 VIEW_TYPE_EXTENSION_DIALOG, |
| 23 VIEW_TYPE_APP_SHELL, |
23 }; | 24 }; |
24 | 25 |
25 // Constant strings corresponding to the Type enumeration values. Used | 26 // Constant strings corresponding to the Type enumeration values. Used |
26 // when converting JS arguments. | 27 // when converting JS arguments. |
27 extern const char kViewTypeTabContents[]; | 28 extern const char kViewTypeTabContents[]; |
28 extern const char kViewTypeBackgroundPage[]; | 29 extern const char kViewTypeBackgroundPage[]; |
29 extern const char kViewTypePopup[]; | 30 extern const char kViewTypePopup[]; |
30 extern const char kViewTypeInfobar[]; | 31 extern const char kViewTypeInfobar[]; |
31 extern const char kViewTypeNotification[]; | 32 extern const char kViewTypeNotification[]; |
32 extern const char kViewTypeExtensionDialog[]; | 33 extern const char kViewTypeExtensionDialog[]; |
| 34 extern const char kViewTypeAppShell[]; |
33 extern const char kViewTypeAll[]; | 35 extern const char kViewTypeAll[]; |
34 | 36 |
35 } // namespace chrome | 37 } // namespace chrome |
36 | 38 |
37 #endif // CHROME_COMMON_CHROME_VIEW_TYPE_H_ | 39 #endif // CHROME_COMMON_CHROME_VIEW_TYPE_H_ |
OLD | NEW |