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

Unified Diff: components/arc/common/arc_message_types.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_types.h
diff --git a/components/arc/common/arc_message_types.h b/components/arc/common/arc_message_types.h
index e07193d628dff6f8a5448226c568185de44be506..5971a6b0482a92ef0d5cd683a3166d92e5af5b4b 100644
--- a/components/arc/common/arc_message_types.h
+++ b/components/arc/common/arc_message_types.h
@@ -5,7 +5,10 @@
#ifndef COMPONENTS_ARC_COMMON_MESSAGE_TYPES
#define COMPONENTS_ARC_COMMON_MESSAGE_TYPES
+#include <string>
+
namespace arc {
+
// Describing the boot phase of the ARC instance, as defined by AOSP in
// com.android.server.SystemService
enum class InstanceBootPhase {
@@ -35,6 +38,30 @@ enum class InstanceBootPhase {
// Last enum entry for IPC_ENUM_TRAITS
LAST = BOOT_COMPLETED
};
-}
+
+// Duplicates ui::ScaleFactor enum in order to be accessible on Android side.
+enum ScaleFactor : int {
khmel1 2015/12/02 00:31:46 I also will add a unit test at chrome/browser/ui/a
yoshiki 2015/12/03 02:24:32 It might be better to use "enum class" instead.
khmel1 2015/12/03 03:53:27 I would keep this one-to-one as they are originall
+ SCALE_FACTOR_NONE = 0,
+ SCALE_FACTOR_100P,
+ SCALE_FACTOR_125P,
+ SCALE_FACTOR_133P,
+ SCALE_FACTOR_140P,
+ SCALE_FACTOR_150P,
+ SCALE_FACTOR_180P,
+ SCALE_FACTOR_200P,
+ SCALE_FACTOR_250P,
+ SCALE_FACTOR_300P,
+
+ NUM_SCALE_FACTORS
+};
+
+// Describes ARC app.
+struct AppInfo {
+ std::string name;
+ std::string package;
+ std::string activity;
+};
+
+} // namespace arc
#endif // COMPONENTS_ARC_COMMON_MESSAGE_TYPES
« components/arc/common/arc_message_traits.h ('K') | « components/arc/common/arc_message_traits.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698