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 #include "chrome/common/view_types.h" | 5 #include "chrome/common/view_types.h" |
6 | 6 |
7 const char* ViewType::kTabContents = "TAB"; | 7 const char* ViewType::kTabContents = "TAB"; |
8 const char* ViewType::kToolstrip = "TOOLSTRIP"; | 8 const char* ViewType::kToolstrip = "TOOLSTRIP"; |
9 const char* ViewType::kMole = "MOLE"; | 9 const char* ViewType::kMole = "MOLE"; |
10 const char* ViewType::kBackgroundPage = "BACKGROUND"; | 10 const char* ViewType::kBackgroundPage = "BACKGROUND"; |
11 const char* ViewType::kPopup = "POPUP"; | 11 const char* ViewType::kPopup = "POPUP"; |
12 const char* ViewType::kInfobar = "INFOBAR"; | 12 const char* ViewType::kInfobar = "INFOBAR"; |
13 const char* ViewType::kNotification = "NOTIFICATION"; | 13 const char* ViewType::kNotification = "NOTIFICATION"; |
14 const char* ViewType::kAll = "ALL"; | 14 const char* ViewType::kAll = "ALL"; |
15 | |
16 bool ViewType::ShouldAutoResize(ViewType::Type view_type) { | |
17 return (view_type == EXTENSION_TOOLSTRIP || | |
18 view_type == EXTENSION_MOLE || | |
19 view_type == EXTENSION_POPUP); | |
20 } | |
OLD | NEW |