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

Unified Diff: mojo/tools/mojo_demo.sh

Issue 817573003: Move wm_flow off of views and onto Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « mojo/tools/mojo_demo.py ('k') | shell/dynamic_application_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/mojo_demo.sh
diff --git a/mojo/tools/mojo_demo.sh b/mojo/tools/mojo_demo.sh
deleted file mode 100755
index 8a27f0d748c43c9086b5daa43c6c116493f55e4b..0000000000000000000000000000000000000000
--- a/mojo/tools/mojo_demo.sh
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/bash
-# Copyright 2014 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.
-
-# This a simple script to make launching demos easier.
-
-DIRECTORY="$(dirname "$0")"/../../out/Debug
-PORT=$(($RANDOM % 8192 + 2000))
-
-do_help() {
- cat << EOF
-Usage: $(basename "$0") [-d DIRECTORY] --browser|--wm_flow
-
-DIRECTORY defaults to $DIRECTORY.
-
-Example:
- $(basename "$0") --browser
-EOF
-}
-
-args=
-
-while [ $# -gt 0 ]; do
- case "$1" in
- -h|--help)
- do_help
- exit 0
- ;;
- -d)
- shift
- if [ $# -eq 0 ]; then
- do_help
- exit 1
- fi
- DIRECTORY="$1"
- ;;
- --browser)
- args="--url-mappings=mojo:window_manager=mojo:example_window_manager "
- args+="mojo:window_manager"
- ;;
- --wm_flow)
- args="--url-mappings=mojo:window_manager=mojo:wm_flow_wm mojo:wm_flow_app"
- ;;
- *)
- break
- ;;
- esac
- shift
-done
-
-if [ -z "$args" ]; then
- do_help
- exit 0
-fi
-
-echo "Base directory: $DIRECTORY"
-
-echo "$DIRECTORY/mojo_shell $args"
-echo $args
-$DIRECTORY/mojo_shell $args
« no previous file with comments | « mojo/tools/mojo_demo.py ('k') | shell/dynamic_application_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698