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
3 // found in the LICENSE file.
5 #ifndef CHROME_COMMON_VIEW_TYPE_H_
6 #define CHROME_COMMON_VIEW_TYPE_H_
10 // Icky RTTI used by a few systems to distinguish the host type of a given
11 // RenderViewHost or WebContents.
13 // TODO(aa): Remove this and teach those systems to keep track of their own
18 VIEW_TYPE_BACKGROUND_CONTENTS
,
19 VIEW_TYPE_EXTENSION_BACKGROUND_PAGE
,
20 VIEW_TYPE_EXTENSION_DIALOG
,
21 VIEW_TYPE_EXTENSION_INFOBAR
,
22 VIEW_TYPE_EXTENSION_POPUP
,
23 VIEW_TYPE_NOTIFICATION
,
25 VIEW_TYPE_TAB_CONTENTS
,
28 // Constant strings corresponding to the Type enumeration values. Used
29 // when converting JS arguments.
30 extern const char kViewTypeAll
[];
31 extern const char kViewTypeAppShell
[];
32 extern const char kViewTypeBackgroundPage
[];
33 extern const char kViewTypeExtensionDialog
[];
34 extern const char kViewTypeInfobar
[];
35 extern const char kViewTypeNotification
[];
36 extern const char kViewTypePanel
[];
37 extern const char kViewTypePopup
[];
38 extern const char kViewTypeTabContents
[];
42 #endif // CHROME_COMMON_VIEW_TYPE_H_