Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2347)

Unified Diff: ash/public/cpp/shelf_types.cc

Issue 2702423004: Validate incoming window properties. (Closed)
Patch Set: sky comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/public/cpp/shelf_types.h ('k') | chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ash/public/cpp/shelf_types.h ('k') | chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698