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

Unified Diff: apps/app_shim/app_shim_launch.h

Issue 14579006: Start app shim when app launched. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed a file Created 7 years, 7 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: apps/app_shim/app_shim_launch.h
diff --git a/apps/app_shim/app_shim_launch.h b/apps/app_shim/app_shim_launch.h
new file mode 100644
index 0000000000000000000000000000000000000000..98c99a784385d033b82688b4de3b425e97ae00ab
--- /dev/null
+++ b/apps/app_shim/app_shim_launch.h
@@ -0,0 +1,30 @@
+// Copyright 2013 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.
+
+#ifndef APPS_APP_SHIM_APP_SHIM_LAUNCH_H_
+#define APPS_APP_SHIM_APP_SHIM_LAUNCH_H_
+
+#include "ipc/ipc_param_traits.h"
+
+namespace apps {
+
+enum AppShimLaunchType {
+ REGISTER_WITHOUT_LAUNCH = 0, // Process the app shim's LaunchApp message and
tapted 2013/05/30 03:25:06 It's typical for enum values to share a common pre
jackhou1 2013/05/30 05:10:05 Done. But _NORMAL instead of _REGULAR, because it
+ // associate the shim with the given profile
+ // and app id.
+ LAUNCH_NOW, // Do the above and launch the app.
+};
+
+} // namespace apps
+
+namespace IPC {
+
+template <>
+struct IPC::SimilarTypeTraits<apps::AppShimLaunchType> {
+ typedef int Type;
+};
+
+} // namespace IPC
+
+#endif // APPS_APP_SHIM_APP_SHIM_LAUNCH_H_

Powered by Google App Engine
This is Rietveld 408576698