blob: 2d9c539d52ddbbe4f7aeb32841fbc0752b0fb66b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_COMMON_VIEW_TYPES_H_
#define CHROME_COMMON_VIEW_TYPES_H_
#pragma once
#include "base/basictypes.h"
// Indicates different types of views
class ViewType {
public:
enum Type {
INVALID,
BACKGROUND_CONTENTS,
TAB_CONTENTS,
EXTENSION_BACKGROUND_PAGE,
EXTENSION_POPUP,
EXTENSION_INFOBAR,
DEV_TOOLS_UI,
INTERSTITIAL_PAGE,
NOTIFICATION,
};
// Constant strings corresponding to the Type enumeration values. Used
// when converting JS arguments.
static const char* kTabContents;
static const char* kBackgroundPage;
static const char* kPopup;
static const char* kInfobar;
static const char* kNotification;
static const char* kAll;
private:
// This class is for scoping only, so you shouldn't create an instance of it.
ViewType() {}
DISALLOW_COPY_AND_ASSIGN(ViewType);
};
#endif // CHROME_COMMON_VIEW_TYPES_H_
|