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

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

Issue 2778733004: Add WindowPinType property on arua::Window (Closed)
Patch Set: Address review issue Created 3 years, 9 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
Index: ash/public/cpp/window_pin_type.cc
diff --git a/ash/public/cpp/window_pin_type.cc b/ash/public/cpp/window_pin_type.cc
new file mode 100644
index 0000000000000000000000000000000000000000..48cd467603c244d9718193704d48c35553fe30e4
--- /dev/null
+++ b/ash/public/cpp/window_pin_type.cc
@@ -0,0 +1,17 @@
+// 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/window_pin_type.h"
+
+#include "ash/public/interfaces/window_pin_type.mojom.h"
+
+namespace ash {
+
+bool IsValidWindowPinType(int64_t value) {
+ return value == int64_t(ash::mojom::WindowPinType::NONE) ||
+ value == int64_t(ash::mojom::WindowPinType::PINNED) ||
+ value == int64_t(ash::mojom::WindowPinType::TRUSTED_PINNED);
+}
+
+} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698