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

Unified Diff: cloud_print/virtual_driver/posix/install_cloud_print_driver_mac.mm

Issue 7485011: Virtual Cloud Print Driver for Mac. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed copyright Created 9 years, 4 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 | « cloud_print/virtual_driver/posix/backend.gyp ('k') | cloud_print/virtual_driver/posix/installer_util_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/virtual_driver/posix/install_cloud_print_driver_mac.mm
diff --git a/cloud_print/virtual_driver/posix/install_cloud_print_driver_mac.mm b/cloud_print/virtual_driver/posix/install_cloud_print_driver_mac.mm
new file mode 100644
index 0000000000000000000000000000000000000000..0d3f44c2456ddb2a8c2420f3238fbafc95f3175b
--- /dev/null
+++ b/cloud_print/virtual_driver/posix/install_cloud_print_driver_mac.mm
@@ -0,0 +1,20 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import <ApplicationServices/ApplicationServices.h>
+#import <Foundation/NSAutoreleasePool.h>
+
+#include "cloud_print/virtual_driver/posix/installer_util_mac.h"
+
+const AEEventClass kAECloudPrintInstallClass= 'GCPi';
+
+// Installer for Virtual Driver on Mac. Sends an Apple Event to
+// Chrome, launching it if necessary. The Apple Event registers
+// the virtual driver with the service process.
+int main() {
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+ cloud_print::sendServiceProcessEvent(kAECloudPrintInstallClass);
+ [pool release];
+ return 0;
+}
« no previous file with comments | « cloud_print/virtual_driver/posix/backend.gyp ('k') | cloud_print/virtual_driver/posix/installer_util_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698