Commit 13aec6c4 authored by jam@chromium.org's avatar jam@chromium.org

Move cloud_print_class_mac files from content/common to...

Move cloud_print_class_mac files from content/common to chrome/common/cloud_print. They don't belong in content.

TBR=abodenha
Review URL: http://codereview.chromium.org/8341079

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107626 0039d316-1c4b-4281-b951-d872f2087c98
parent dc309f0e
......@@ -54,6 +54,7 @@
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_paths_internal.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/cloud_print/cloud_print_class_mac.h"
#include "chrome/common/mac/app_mode_common.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/service_messages.h"
......@@ -62,7 +63,6 @@
#include "content/browser/download/download_manager.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/user_metrics.h"
#include "content/common/cloud_print_class_mac.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_types.h"
#include "grit/chromium_strings.h"
......@@ -200,8 +200,8 @@ const AEEventClass kAECloudPrintUninstallClass = 'GCPu';
andEventID:kAEGetURL];
[em setEventHandler:self
andSelector:@selector(submitCloudPrintJob:)
forEventClass:content::kAECloudPrintClass
andEventID:content::kAECloudPrintClass];
forEventClass:cloud_print::kAECloudPrintClass
andEventID:cloud_print::kAECloudPrintClass];
// Install and uninstall handlers for virtual drivers.
[em setEventHandler:self
andSelector:@selector(installCloudPrint:)
......@@ -1095,7 +1095,7 @@ const AEEventClass kAECloudPrintUninstallClass = 'GCPu';
- (void)submitCloudPrintJob:(NSAppleEventDescriptor*)event {
// Pull parameter list out of Apple Event.
NSAppleEventDescriptor *paramList =
[event paramDescriptorForKeyword:content::kAECloudPrintClass];
[event paramDescriptorForKeyword:cloud_print::kAECloudPrintClass];
if (paramList != nil) {
// Pull required fields out of parameter list.
......
......@@ -79,6 +79,8 @@
'common/chrome_version_info_mac.mm',
'common/chrome_version_info_win.cc',
'common/chrome_version_info.h',
'common/cloud_print/cloud_print_class_mac.h',
'common/cloud_print/cloud_print_class_mac.mm',
'common/cloud_print/cloud_print_proxy_info.cc',
'common/cloud_print/cloud_print_proxy_info.h',
'common/common_api.h',
......
......@@ -2,18 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_COMMON_CLOUD_PRINT_CLASS_MAC_H_
#define CONTENT_COMMON_CLOUD_PRINT_CLASS_MAC_H_
#ifndef CHROME_COMMON_CLOUD_PRINT_CLOUD_PRINT_CLASS_MAC_H_
#define CHROME_COMMON_CLOUD_PRINT_CLOUD_PRINT_CLASS_MAC_H_
#pragma once
#import <AppKit/AppKit.h>
namespace content {
namespace cloud_print {
// Four character constant to identify Cloud print IPC call.
extern const AEEventClass kAECloudPrintClass;
} // namespace content
#endif // CONTENT_COMMON_CLOUD_PRINT_CLASS_MAC_H_
} // namespace cloud_print
#endif // CHROME_COMMON_CLOUD_PRINT_CLOUD_PRINT_CLASS_MAC_H_
......@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "content/common/cloud_print_class_mac.h"
#import "chrome/common/cloud_print/cloud_print_class_mac.h"
namespace content {
namespace cloud_print {
const AEEventClass kAECloudPrintClass = 'GCPp';
} // namespace content
} // namespace cloud_print
......@@ -6,7 +6,7 @@
#include "base/logging.h"
#include "base/mac/foundation_util.h"
#import "content/common/cloud_print_class_mac.h"
#import "chrome/common/cloud_print/cloud_print_class_mac.h"
#include "chrome/common/chrome_switches.h"
@interface ServiceCrApplication ()
......@@ -20,8 +20,8 @@
NSAppleEventManager* em = [NSAppleEventManager sharedAppleEventManager];
[em setEventHandler:self
andSelector:@selector(submitPrint:)
forEventClass:content::kAECloudPrintClass
andEventID:content::kAECloudPrintClass];
forEventClass:cloud_print::kAECloudPrintClass
andEventID:cloud_print::kAECloudPrintClass];
}
// Event handler for Cloud Print Event. Forwards print job received to Chrome,
......@@ -55,17 +55,17 @@
// Actually create the Apple Event.
NSAppleEventDescriptor* sendEvent =
[NSAppleEventDescriptor
appleEventWithEventClass:content::kAECloudPrintClass
eventID:content::kAECloudPrintClass
appleEventWithEventClass:cloud_print::kAECloudPrintClass
eventID:cloud_print::kAECloudPrintClass
targetDescriptor:nil
returnID:kAutoGenerateReturnID
transactionID:kAnyTransactionID];
// Pull the parameters out of AppleEvent sent to us and attach them
// to our Apple Event.
NSAppleEventDescriptor* parameters =
[event paramDescriptorForKeyword:content::kAECloudPrintClass];
[event paramDescriptorForKeyword:cloud_print::kAECloudPrintClass];
[sendEvent setParamDescriptor:parameters
forKeyword:content::kAECloudPrintClass];
forKeyword:cloud_print::kAECloudPrintClass];
LSApplicationParameters params = { 0,
kLSLaunchDefaults,
&ref,
......
......@@ -18,7 +18,7 @@
#include <stdlib.h>
#include <string>
// Duplicated is content/common/cloud_print_class_mac.h
// Duplicated is chrome/common/cloud_print/cloud_print_class_mac.h
const AEEventClass kAECloudPrintClass = 'GCPp';
namespace cloud_print {
......
......@@ -75,8 +75,6 @@
'common/chrome_application_mac.h',
'common/chrome_application_mac.mm',
'common/chrome_descriptors.h',
'common/cloud_print_class_mac.h',
'common/cloud_print_class_mac.mm',
'common/clipboard_messages.h',
'common/content_message_generator.cc',
'common/content_message_generator.h',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment