Reorgnize the platform-specific files

This commit is contained in:
Cheng Zhao 2018-01-10 14:45:42 +09:00
parent b2542a27c3
commit 5f1c76c688
7 changed files with 18 additions and 24 deletions

View file

@ -2,11 +2,12 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/api/atom_api_in_app_purchase.h"
#include <string>
#include <utility>
#include <vector>
#include "atom/browser/api/atom_api_in_app_purchase.h"
#include "atom/common/native_mate_converters/callback.h"
#include "native_mate/dictionary.h"

View file

@ -7,8 +7,8 @@
#include <string>
#include "atom/browser/in_app_purchase.h"
#include "atom/browser/in_app_purchase_observer.h"
#include "atom/browser/mac/in_app_purchase.h"
#include "atom/browser/mac/in_app_purchase_observer.h"
#include "native_mate/dictionary.h"
namespace mate {

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ATOM_BROWSER_IN_APP_PURCHASE_H_
#define ATOM_BROWSER_IN_APP_PURCHASE_H_
#ifndef ATOM_BROWSER_MAC_IN_APP_PURCHASE_H_
#define ATOM_BROWSER_MAC_IN_APP_PURCHASE_H_
#include <string>
@ -27,4 +27,4 @@ void PurchaseProduct(const std::string& productID,
} // namespace in_app_purchase
#endif // ATOM_BROWSER_IN_APP_PURCHASE_H_
#endif // ATOM_BROWSER_MAC_IN_APP_PURCHASE_H_

View file

@ -2,7 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/in_app_purchase.h"
#include "atom/browser/mac/in_app_purchase.h"
#include "base/bind.h"
#include "base/strings/sys_string_conversions.h"
#include "content/public/browser/browser_thread.h"

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ATOM_BROWSER_IN_APP_PURCHASE_OBSERVER_H_
#define ATOM_BROWSER_IN_APP_PURCHASE_OBSERVER_H_
#ifndef ATOM_BROWSER_MAC_IN_APP_PURCHASE_OBSERVER_H_
#define ATOM_BROWSER_MAC_IN_APP_PURCHASE_OBSERVER_H_
#include <string>
@ -38,4 +38,4 @@ void AddTransactionObserver(const InAppTransactionCallback& callback);
} // namespace in_app_purchase
#endif // ATOM_BROWSER_IN_APP_PURCHASE_OBSERVER_H_
#endif // ATOM_BROWSER_MAC_IN_APP_PURCHASE_OBSERVER_H_

View file

@ -2,7 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/in_app_purchase_observer.h"
#include "atom/browser/mac/in_app_purchase_observer.h"
#include "base/bind.h"
#include "base/strings/sys_string_conversions.h"
#include "content/public/browser/browser_thread.h"

View file

@ -187,10 +187,6 @@
'atom/browser/atom_browser_context.h',
'atom/browser/atom_download_manager_delegate.cc',
'atom/browser/atom_download_manager_delegate.h',
'atom/browser/in_app_purchase.h',
'atom/browser/in_app_purchase_mac.mm',
'atom/browser/in_app_purchase_observer.h',
'atom/browser/in_app_purchase_observer_mac.mm',
'atom/browser/atom_browser_main_parts.cc',
'atom/browser/atom_browser_main_parts.h',
'atom/browser/atom_browser_main_parts_mac.mm',
@ -238,6 +234,10 @@
'atom/browser/mac/atom_application_delegate.mm',
'atom/browser/mac/dict_util.h',
'atom/browser/mac/dict_util.mm',
'atom/browser/mac/in_app_purchase.h',
'atom/browser/mac/in_app_purchase.mm',
'atom/browser/mac/in_app_purchase_observer.h',
'atom/browser/mac/in_app_purchase_observer.mm',
'atom/browser/native_browser_view.cc',
'atom/browser/native_browser_view.h',
'atom/browser/native_browser_view_mac.h',
@ -733,15 +733,6 @@
'atom/browser/osr/osr_view_proxy.h',
],
}], # enable_osr==1
['OS=="mac"', {
'app_sources': [
'atom/browser/in_app_purchase.h',
'atom/browser/in_app_purchase_mac.mm',
'atom/browser/in_app_purchase_observer.h',
'atom/browser/in_app_purchase_observer_mac.mm'
],
}], # OS=="mac"
],
},
}