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

Side by Side Diff: samples/android_sample/assets/dart/android_extension.dart

Issue 11416343: Refactored Android samples / embedder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix type error on playBackground Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « samples/android_sample/android_sample.gyp ('k') | samples/android_sample/build.xml » ('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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library android_extension; 5 library android_extension;
6 6
7 import "dart-ext:android_extension";
8
9 // The simplest way to call native code: top-level functions. 7 // The simplest way to call native code: top-level functions.
10 int systemRand() native "SystemRand"; 8 int systemRand() native "SystemRand";
11 void systemSrand(int seed) native "SystemSrand"; 9 void systemSrand(int seed) native "SystemSrand";
12 void log(String what) native "Log"; 10 void log(String what) native "Log";
13 11
14 // EGL functions. 12 // EGL functions.
15 void eglSwapBuffers() native "EGLSwapBuffers"; 13 void eglSwapBuffers() native "EGLSwapBuffers";
16 14
17 // GL functions. 15 // GL functions.
18 void glAttachShader(int program, int shader) native "GLAttachShader"; 16 void glAttachShader(int program, int shader) native "GLAttachShader";
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 139 }
142 140
143 var gl = new WebGLRenderingContext(); 141 var gl = new WebGLRenderingContext();
144 142
145 //------------------------------------------------------------------ 143 //------------------------------------------------------------------
146 // Simple audio support. 144 // Simple audio support.
147 145
148 void playBackground(String path) native "PlayBackground"; 146 void playBackground(String path) native "PlayBackground";
149 void stopBackground() native "StopBackground"; 147 void stopBackground() native "StopBackground";
150 148
OLDNEW
« no previous file with comments | « samples/android_sample/android_sample.gyp ('k') | samples/android_sample/build.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698