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

Unified Diff: components/arc/common/arc_message_traits.h

Issue 1475563002: arc-bridge: Implement IPC message for app launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add arc::ScaleFactor enum Created 5 years 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: components/arc/common/arc_message_traits.h
diff --git a/components/arc/common/arc_message_traits.h b/components/arc/common/arc_message_traits.h
new file mode 100644
index 0000000000000000000000000000000000000000..9d0938ff917899742adc50297cd8c189c703b9e8
--- /dev/null
+++ b/components/arc/common/arc_message_traits.h
@@ -0,0 +1,17 @@
+// Copyright 2015 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 "components/arc/common/arc_message_types.h"
+#include "ipc/ipc_message_macros.h"
+#include "ipc/ipc_message_utils.h"
+
+IPC_ENUM_TRAITS_MIN_MAX_VALUE(arc::ScaleFactor,
+ arc::ScaleFactor::SCALE_FACTOR_100P,
yoshiki 2015/12/03 02:24:32 SCALE_FACTOR_NONE is never passed, right? SCALE_FA
khmel1 2015/12/03 03:53:27 Right, SCALE_FACTOR_NONE is invalid value for this
+ arc::ScaleFactor::NUM_SCALE_FACTORS);
yoshiki 2015/12/03 02:24:32 This is the max value, so you may specify "NUM_SCA
khmel1 2015/12/03 03:53:27 Yes, you are right, they are both inclusive and I
+
+IPC_STRUCT_TRAITS_BEGIN(arc::AppInfo)
+ IPC_STRUCT_TRAITS_MEMBER(name)
+ IPC_STRUCT_TRAITS_MEMBER(package)
+ IPC_STRUCT_TRAITS_MEMBER(activity)
+IPC_STRUCT_TRAITS_END()

Powered by Google App Engine
This is Rietveld 408576698