Home | History | Annotate | Download | only in common
      1 // Copyright (c) 2010 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.
      4 
      5 #ifndef CHROME_COMMON_VIEW_TYPES_H_
      6 #define CHROME_COMMON_VIEW_TYPES_H_
      7 #pragma once
      8 
      9 #include "base/basictypes.h"
     10 
     11 // Indicates different types of views
     12 class ViewType {
     13  public:
     14   enum Type {
     15     INVALID,
     16     BACKGROUND_CONTENTS,
     17     TAB_CONTENTS,
     18     EXTENSION_BACKGROUND_PAGE,
     19     EXTENSION_POPUP,
     20     EXTENSION_INFOBAR,
     21     DEV_TOOLS_UI,
     22     INTERSTITIAL_PAGE,
     23     NOTIFICATION,
     24   };
     25 
     26   // Constant strings corresponding to the Type enumeration values.  Used
     27   // when converting JS arguments.
     28   static const char* kTabContents;
     29   static const char* kBackgroundPage;
     30   static const char* kPopup;
     31   static const char* kInfobar;
     32   static const char* kNotification;
     33   static const char* kAll;
     34 
     35  private:
     36   // This class is for scoping only, so you shouldn't create an instance of it.
     37   ViewType() {}
     38 
     39   DISALLOW_COPY_AND_ASSIGN(ViewType);
     40 };
     41 
     42 #endif  // CHROME_COMMON_VIEW_TYPES_H_
     43