Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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 #include "ash/public/cpp/shelf_types.h" | |
| 6 | |
| 7 namespace ash { | |
| 8 | |
| 9 bool IsValidShelfItemType(int64_t type) { | |
| 10 return type == TYPE_APP_PANEL || type == TYPE_APP_SHORTCUT || | |
| 11 type == TYPE_APP_LIST || type == TYPE_BROWSER_SHORTCUT || | |
| 12 type == TYPE_APP || type == TYPE_DIALOG || type == TYPE_UNDEFINED; | |
| 13 } | |
| 14 | |
| 15 } // namespace ash | |
| OLD | NEW |