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

Unified Diff: samples/github/ios/github/AppDelegate.mm

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 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
Index: samples/github/ios/github/AppDelegate.mm
diff --git a/samples/github/ios/github/AppDelegate.mm b/samples/github/ios/github/AppDelegate.mm
index aeaffd0d3a3a0797eae3f9738819a7076f57d96d..c94e8cbfb0312f056b314c87ed1f21710811523c 100644
--- a/samples/github/ios/github/AppDelegate.mm
+++ b/samples/github/ios/github/AppDelegate.mm
@@ -4,7 +4,7 @@
#import "AppDelegate.h"
-#include "include/fletch_api.h"
+#include "include/dartino_api.h"
#include "include/service_api.h"
#include "github_mock.h"
@@ -24,36 +24,36 @@ static int debugPortNumber = 8123;
+ (void)loadAndRunDartSnapshot {
if (attachDebugger) {
NSLog(@"Waiting for debugger connection.");
- FletchWaitForDebuggerConnection(debugPortNumber);
+ DartinoWaitForDebuggerConnection(debugPortNumber);
NSLog(@"Debugger connected.");
} else {
- FletchProgram programs[2];
+ DartinoProgram programs[2];
programs[0] = [AppDelegate loadSnapshot:@"github"];
programs[1] = [AppDelegate loadSnapshot:@"github_mock_service"];
- FletchRunMultipleMain(2, programs);
- FletchDeleteProgram(programs[0]);
- FletchDeleteProgram(programs[1]);
+ DartinoRunMultipleMain(2, programs);
+ DartinoDeleteProgram(programs[0]);
+ DartinoDeleteProgram(programs[1]);
}
}
-+ (FletchProgram)loadSnapshot:(NSString*)name {
++ (DartinoProgram)loadSnapshot:(NSString*)name {
// Get the path for the snapshot in the main application bundle.
NSBundle* mainBundle = [NSBundle mainBundle];
NSString* snapshot = [mainBundle pathForResource:name ofType:@"snapshot"];
- // Read the snapshot and pass it to fletch.
+ // Read the snapshot and pass it to dartino.
NSData* data = [[NSData alloc] initWithContentsOfFile:snapshot];
unsigned char* bytes =
reinterpret_cast<unsigned char*>(const_cast<void*>(data.bytes));
- return FletchLoadSnapshot(bytes, data.length);
+ return DartinoLoadSnapshot(bytes, data.length);
}
- (BOOL)application:(UIApplication*)application
didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
- // Setup Fletch and the Fletch service API.
- FletchSetup();
+ // Setup Dartino and the Dartino service API.
+ DartinoSetup();
ServiceApiSetup();
- // Create dispatch queue to run the Fletch VM on a separate thread.
- queue = dispatch_queue_create("com.google.fletch.dartQueue",
+ // Create dispatch queue to run the Dartino VM on a separate thread.
+ queue = dispatch_queue_create("com.google.dartino.dartQueue",
DISPATCH_QUEUE_SERIAL);
// Post task to load and run snapshot on a different thread.
dispatch_async(queue, ^() {
@@ -98,11 +98,11 @@ static int debugPortNumber = 8123;
// appropriate. See also applicationDidEnterBackground:.
GithubMockServer::stop();
- // Tear down the service API structures and Fletch.
+ // Tear down the service API structures and Dartino.
ImmiServiceLayer::tearDown();
GithubMockServer::tearDown();
ServiceApiTearDown();
- FletchTearDown();
+ DartinoTearDown();
}
@end
« no previous file with comments | « samples/github/ios/github.xcodeproj/project.pbxproj ('k') | samples/github/ios/github/Base.lproj/Main.storyboard » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698