| Index: ash/public/cpp/shelf_types.cc
|
| diff --git a/ash/public/cpp/shelf_types.cc b/ash/public/cpp/shelf_types.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e61144b1f9a878af0386fae9bb513e43a51757d6
|
| --- /dev/null
|
| +++ b/ash/public/cpp/shelf_types.cc
|
| @@ -0,0 +1,15 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "ash/public/cpp/shelf_types.h"
|
| +
|
| +namespace ash {
|
| +
|
| +bool IsValidShelfItemType(int64_t type) {
|
| + return type == TYPE_APP_PANEL || type == TYPE_APP_SHORTCUT ||
|
| + type == TYPE_APP_LIST || type == TYPE_BROWSER_SHORTCUT ||
|
| + type == TYPE_APP || type == TYPE_DIALOG || type == TYPE_UNDEFINED;
|
| +}
|
| +
|
| +} // namespace ash
|
|
|