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

Side by Side Diff: extensions/common/view_type.h

Issue 13375017: Move the ViewType enum to extensions\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
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_VIEW_TYPE_H_ 5 #ifndef EXTENSIONS_COMMON_VIEW_TYPE_H_
6 #define CHROME_COMMON_VIEW_TYPE_H_ 6 #define EXTENSIONS_COMMON_VIEW_TYPE_H_
7 7
8 namespace chrome { 8 namespace extensions {
9 9
10 // Icky RTTI used by a few systems to distinguish the host type of a given 10 // Icky RTTI used by a few systems to distinguish the host type of a given
11 // RenderViewHost or WebContents. 11 // WebContents.
12 // 12 //
13 // TODO(aa): Remove this and teach those systems to keep track of their own 13 // TODO(aa): Remove this and teach those systems to keep track of their own
14 // data. 14 // data.
15 enum ViewType { 15 enum ViewType {
16 VIEW_TYPE_INVALID, 16 VIEW_TYPE_INVALID,
17 VIEW_TYPE_APP_SHELL, 17 VIEW_TYPE_APP_SHELL,
18 VIEW_TYPE_BACKGROUND_CONTENTS, 18 VIEW_TYPE_BACKGROUND_CONTENTS,
19 VIEW_TYPE_EXTENSION_BACKGROUND_PAGE, 19 VIEW_TYPE_EXTENSION_BACKGROUND_PAGE,
20 VIEW_TYPE_EXTENSION_DIALOG, 20 VIEW_TYPE_EXTENSION_DIALOG,
21 VIEW_TYPE_EXTENSION_INFOBAR, 21 VIEW_TYPE_EXTENSION_INFOBAR,
22 VIEW_TYPE_EXTENSION_POPUP, 22 VIEW_TYPE_EXTENSION_POPUP,
23 // TODO(jam): remove this once http://crbug.com/137297 is fixed and HTML5
24 // notifications don't use WebContents.
23 VIEW_TYPE_NOTIFICATION, 25 VIEW_TYPE_NOTIFICATION,
24 VIEW_TYPE_PANEL, 26 VIEW_TYPE_PANEL,
25 VIEW_TYPE_TAB_CONTENTS, 27 VIEW_TYPE_TAB_CONTENTS,
26 }; 28 };
27 29
28 // Constant strings corresponding to the Type enumeration values. Used 30 // Constant strings corresponding to the Type enumeration values. Used
29 // when converting JS arguments. 31 // when converting JS arguments.
30 extern const char kViewTypeAll[]; 32 extern const char kViewTypeAll[];
31 extern const char kViewTypeAppShell[]; 33 extern const char kViewTypeAppShell[];
32 extern const char kViewTypeBackgroundPage[]; 34 extern const char kViewTypeBackgroundPage[];
33 extern const char kViewTypeExtensionDialog[]; 35 extern const char kViewTypeExtensionDialog[];
34 extern const char kViewTypeInfobar[]; 36 extern const char kViewTypeInfobar[];
35 extern const char kViewTypeNotification[]; 37 extern const char kViewTypeNotification[];
36 extern const char kViewTypePanel[]; 38 extern const char kViewTypePanel[];
37 extern const char kViewTypePopup[]; 39 extern const char kViewTypePopup[];
38 extern const char kViewTypeTabContents[]; 40 extern const char kViewTypeTabContents[];
39 41
40 } // namespace chrome 42 } // namespace extensions
41 43
42 #endif // CHROME_COMMON_VIEW_TYPE_H_ 44 #endif // EXTENSIONS_COMMON_VIEW_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698