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

Side by Side Diff: examples/dart/camera_roll/camera_roll.dart

Issue 1242453003: Extract the shell runner into devtools. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Update more paths and devtools README. Created 5 years, 5 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 | « README.md ('k') | examples/dart/speech_input/speech_input.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // To run: mojo/tools/mojo_shell.py --sky \ 5 // To run: mojo/devtools/common/mojo_shell --sky \
6 // examples/dart/camera_roll/camera_roll.dart --android 6 // examples/dart/camera_roll/camera_roll.dart --android
7 // This example makes use of mojo:camera_roll which is available only when 7 // This example makes use of mojo:camera_roll which is available only when
8 // running on Android. 8 // running on Android.
9 9
10 import 'dart:async'; 10 import 'dart:async';
11 import 'dart:sky'; 11 import 'dart:sky';
12 12
13 import 'package:mojom/mojo/camera_roll.mojom.dart'; 13 import 'package:mojom/mojo/camera_roll.mojom.dart';
14 import 'package:sky/mojo/embedder.dart'; 14 import 'package:sky/mojo/embedder.dart';
15 15
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 56
57 return false; 57 return false;
58 } 58 }
59 59
60 void main() { 60 void main() {
61 embedder.connectToService("mojo:camera_roll", cameraRoll); 61 embedder.connectToService("mojo:camera_roll", cameraRoll);
62 view.setEventCallback(handleEvent); 62 view.setEventCallback(handleEvent);
63 drawNextPhoto(); 63 drawNextPhoto();
64 } 64 }
OLDNEW
« no previous file with comments | « README.md ('k') | examples/dart/speech_input/speech_input.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698