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