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

Unified Diff: examples/dart/camera_roll/lib/main.dart

Issue 1964193002: Dart: Refactors Proxies (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address comments Created 4 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
« no previous file with comments | « benchmarks/mojo_rtt_benchmark/lib/main.dart ('k') | examples/dart/camera_video/lib/main.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/dart/camera_roll/lib/main.dart
diff --git a/examples/dart/camera_roll/lib/main.dart b/examples/dart/camera_roll/lib/main.dart
index d0ab8a711419acff13406842d88a11df49dd58de..53f5a2d08a47843ed06cbb166c44818ef6d378e0 100644
--- a/examples/dart/camera_roll/lib/main.dart
+++ b/examples/dart/camera_roll/lib/main.dart
@@ -54,11 +54,11 @@ void beginFrame(double timeStamp) {
}
void getPhoto() {
- var future = cameraRoll.ptr.getPhoto(photoIndex);
+ var future = cameraRoll.getPhoto(photoIndex);
future.then((response) {
if (response.photo == null) {
print("Photo $photoIndex not found, returning to the first photo.");
- cameraRoll.ptr.update();
+ cameraRoll.update();
photoIndex = 0;
getPhoto();
return;
« no previous file with comments | « benchmarks/mojo_rtt_benchmark/lib/main.dart ('k') | examples/dart/camera_video/lib/main.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698