Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / extensions / common / view_type.h
blob8fd5e6fa41dcff09827bb79eedf6847605fbbba5
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 EXTENSIONS_COMMON_VIEW_TYPE_H_
6 #define EXTENSIONS_COMMON_VIEW_TYPE_H_
8 namespace extensions {
10 // Icky RTTI used by a few systems to distinguish the host type of a given
11 // WebContents.
13 // TODO(aa): Remove this and teach those systems to keep track of their own
14 // data.
15 enum ViewType {
16 VIEW_TYPE_INVALID,
17 VIEW_TYPE_APP_WINDOW,
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_LAUNCHER_PAGE,
24 VIEW_TYPE_PANEL,
25 VIEW_TYPE_TAB_CONTENTS,
26 VIEW_TYPE_VIRTUAL_KEYBOARD,
27 VIEW_TYPE_LAST = VIEW_TYPE_VIRTUAL_KEYBOARD
30 // Constant strings corresponding to the Type enumeration values. Used
31 // when converting JS arguments.
32 extern const char kViewTypeAll[];
33 extern const char kViewTypeAppWindow[];
34 extern const char kViewTypeBackgroundPage[];
35 extern const char kViewTypeExtensionDialog[];
36 extern const char kViewTypeInfobar[];
37 extern const char kViewTypeLauncherPage[];
38 extern const char kViewTypePanel[];
39 extern const char kViewTypePopup[];
40 extern const char kViewTypeTabContents[];
42 } // namespace extensions
44 #endif // EXTENSIONS_COMMON_VIEW_TYPE_H_