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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « mojo/tools/mojo_demo.py ('k') | shell/dynamic_application_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 # This a simple script to make launching demos easier.
7
8 DIRECTORY="$(dirname "$0")"/../../out/Debug
9 PORT=$(($RANDOM % 8192 + 2000))
10
11 do_help() {
12 cat << EOF
13 Usage: $(basename "$0") [-d DIRECTORY] --browser|--wm_flow
14
15 DIRECTORY defaults to $DIRECTORY.
16
17 Example:
18 $(basename "$0") --browser
19 EOF
20 }
21
22 args=
23
24 while [ $# -gt 0 ]; do
25 case "$1" in
26 -h|--help)
27 do_help
28 exit 0
29 ;;
30 -d)
31 shift
32 if [ $# -eq 0 ]; then
33 do_help
34 exit 1
35 fi
36 DIRECTORY="$1"
37 ;;
38 --browser)
39 args="--url-mappings=mojo:window_manager=mojo:example_window_manager "
40 args+="mojo:window_manager"
41 ;;
42 --wm_flow)
43 args="--url-mappings=mojo:window_manager=mojo:wm_flow_wm mojo:wm_flow_app"
44 ;;
45 *)
46 break
47 ;;
48 esac
49 shift
50 done
51
52 if [ -z "$args" ]; then
53 do_help
54 exit 0
55 fi
56
57 echo "Base directory: $DIRECTORY"
58
59 echo "$DIRECTORY/mojo_shell $args"
60 echo $args
61 $DIRECTORY/mojo_shell $args
OLDNEW
« 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