Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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 "ash/public/cpp/shelf_types.h" | 5 #include "ash/public/cpp/shelf_types.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | |
|
msw
2017/05/04 14:17:30
self nit: removed
James Cook
2017/05/04 16:38:48
Huh?
msw
2017/05/04 19:05:57
ditto; maybe I should have written "nit: remove" o
| |
| 8 | |
| 7 namespace ash { | 9 namespace ash { |
| 8 | 10 |
| 9 bool IsValidShelfItemType(int64_t type) { | 11 bool IsValidShelfItemType(int64_t type) { |
| 10 return type == TYPE_APP_PANEL || type == TYPE_PINNED_APP || | 12 return type == TYPE_APP_PANEL || type == TYPE_PINNED_APP || |
| 11 type == TYPE_APP_LIST || type == TYPE_BROWSER_SHORTCUT || | 13 type == TYPE_APP_LIST || type == TYPE_BROWSER_SHORTCUT || |
| 12 type == TYPE_APP || type == TYPE_DIALOG || type == TYPE_UNDEFINED; | 14 type == TYPE_APP || type == TYPE_DIALOG || type == TYPE_UNDEFINED; |
| 13 } | 15 } |
| 14 | 16 |
| 15 } // namespace ash | 17 } // namespace ash |
| OLD | NEW |