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 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 // Indicates different types of views | 10 // Indicates different types of views |
(...skipping 16 matching lines...) Expand all Loading... |
27 // when converting JS arguments. | 27 // when converting JS arguments. |
28 static const char* kTabContents; | 28 static const char* kTabContents; |
29 static const char* kToolstrip; | 29 static const char* kToolstrip; |
30 static const char* kMole; | 30 static const char* kMole; |
31 static const char* kBackgroundPage; | 31 static const char* kBackgroundPage; |
32 static const char* kPopup; | 32 static const char* kPopup; |
33 static const char* kInfobar; | 33 static const char* kInfobar; |
34 static const char* kNotification; | 34 static const char* kNotification; |
35 static const char* kAll; | 35 static const char* kAll; |
36 | 36 |
37 // Return true if a view type should automatically resize to fit its contents. | |
38 static bool ShouldAutoResize(Type); | |
39 | |
40 private: | 37 private: |
41 // This class is for scoping only, so you shouldn't create an instance of it. | 38 // This class is for scoping only, so you shouldn't create an instance of it. |
42 ViewType() {} | 39 ViewType() {} |
43 | 40 |
44 DISALLOW_COPY_AND_ASSIGN(ViewType); | 41 DISALLOW_COPY_AND_ASSIGN(ViewType); |
45 }; | 42 }; |
46 | 43 |
47 #endif // CHROME_COMMON_VIEW_TYPES_H_ | 44 #endif // CHROME_COMMON_VIEW_TYPES_H_ |
OLD | NEW |