chore: use =default for default constructors/destructors (#29511)
This commit is contained in:
parent
b1d1ac6524
commit
81c5da5221
44 changed files with 68 additions and 61 deletions
|
@ -92,9 +92,9 @@ void ElectronCrashReporterClient::SetGlobalAnnotations(
|
||||||
global_annotations_ = annotations;
|
global_annotations_ = annotations;
|
||||||
}
|
}
|
||||||
|
|
||||||
ElectronCrashReporterClient::ElectronCrashReporterClient() {}
|
ElectronCrashReporterClient::ElectronCrashReporterClient() = default;
|
||||||
|
|
||||||
ElectronCrashReporterClient::~ElectronCrashReporterClient() {}
|
ElectronCrashReporterClient::~ElectronCrashReporterClient() = default;
|
||||||
|
|
||||||
#if defined(OS_LINUX)
|
#if defined(OS_LINUX)
|
||||||
void ElectronCrashReporterClient::SetCrashReporterClientIdFromGUID(
|
void ElectronCrashReporterClient::SetCrashReporterClientIdFromGUID(
|
||||||
|
|
|
@ -105,9 +105,9 @@ const char* InAppPurchase::GetTypeName() {
|
||||||
return "InAppPurchase";
|
return "InAppPurchase";
|
||||||
}
|
}
|
||||||
|
|
||||||
InAppPurchase::InAppPurchase() {}
|
InAppPurchase::InAppPurchase() = default;
|
||||||
|
|
||||||
InAppPurchase::~InAppPurchase() {}
|
InAppPurchase::~InAppPurchase() = default;
|
||||||
|
|
||||||
v8::Local<v8::Promise> InAppPurchase::PurchaseProduct(
|
v8::Local<v8::Promise> InAppPurchase::PurchaseProduct(
|
||||||
const std::string& product_id,
|
const std::string& product_id,
|
||||||
|
|
|
@ -16,7 +16,7 @@ namespace gin_helper {
|
||||||
|
|
||||||
gin::WrapperInfo Event::kWrapperInfo = {gin::kEmbedderNativeGin};
|
gin::WrapperInfo Event::kWrapperInfo = {gin::kEmbedderNativeGin};
|
||||||
|
|
||||||
Event::Event() {}
|
Event::Event() = default;
|
||||||
|
|
||||||
Event::~Event() {
|
Event::~Event() {
|
||||||
if (callback_) {
|
if (callback_) {
|
||||||
|
|
|
@ -18,7 +18,7 @@ ImageView::ImageView() : View(new views::ImageView()) {
|
||||||
view()->set_owned_by_client();
|
view()->set_owned_by_client();
|
||||||
}
|
}
|
||||||
|
|
||||||
ImageView::~ImageView() {}
|
ImageView::~ImageView() = default;
|
||||||
|
|
||||||
void ImageView::SetImage(const gfx::Image& image) {
|
void ImageView::SetImage(const gfx::Image& image) {
|
||||||
image_view()->SetImage(image.AsImageSkia());
|
image_view()->SetImage(image.AsImageSkia());
|
||||||
|
|
|
@ -31,7 +31,7 @@ BadgeManagerFactory::BadgeManagerFactory()
|
||||||
"BadgeManager",
|
"BadgeManager",
|
||||||
BrowserContextDependencyManager::GetInstance()) {}
|
BrowserContextDependencyManager::GetInstance()) {}
|
||||||
|
|
||||||
BadgeManagerFactory::~BadgeManagerFactory() {}
|
BadgeManagerFactory::~BadgeManagerFactory() = default;
|
||||||
|
|
||||||
KeyedService* BadgeManagerFactory::BuildServiceInstanceFor(
|
KeyedService* BadgeManagerFactory::BuildServiceInstanceFor(
|
||||||
content::BrowserContext* context) const {
|
content::BrowserContext* context) const {
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace electron {
|
||||||
ChildWebContentsTracker::ChildWebContentsTracker(
|
ChildWebContentsTracker::ChildWebContentsTracker(
|
||||||
content::WebContents* web_contents) {}
|
content::WebContents* web_contents) {}
|
||||||
|
|
||||||
ChildWebContentsTracker::~ChildWebContentsTracker() {}
|
ChildWebContentsTracker::~ChildWebContentsTracker() = default;
|
||||||
|
|
||||||
WEB_CONTENTS_USER_DATA_KEY_IMPL(ChildWebContentsTracker)
|
WEB_CONTENTS_USER_DATA_KEY_IMPL(ChildWebContentsTracker)
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ constexpr int kUserWantsNoMoreDialogs = -1;
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
ElectronJavaScriptDialogManager::ElectronJavaScriptDialogManager() {}
|
ElectronJavaScriptDialogManager::ElectronJavaScriptDialogManager() = default;
|
||||||
ElectronJavaScriptDialogManager::~ElectronJavaScriptDialogManager() = default;
|
ElectronJavaScriptDialogManager::~ElectronJavaScriptDialogManager() = default;
|
||||||
|
|
||||||
void ElectronJavaScriptDialogManager::RunJavaScriptDialog(
|
void ElectronJavaScriptDialogManager::RunJavaScriptDialog(
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
|
|
||||||
#include "shell/browser/electron_pdf_web_contents_helper_client.h"
|
#include "shell/browser/electron_pdf_web_contents_helper_client.h"
|
||||||
|
|
||||||
ElectronPDFWebContentsHelperClient::ElectronPDFWebContentsHelperClient() {}
|
ElectronPDFWebContentsHelperClient::ElectronPDFWebContentsHelperClient() =
|
||||||
|
default;
|
||||||
ElectronPDFWebContentsHelperClient::~ElectronPDFWebContentsHelperClient() =
|
ElectronPDFWebContentsHelperClient::~ElectronPDFWebContentsHelperClient() =
|
||||||
default;
|
default;
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ class ManagementSetEnabledFunctionInstallPromptDelegate
|
||||||
base::OnceCallback<void(bool)> callback) {
|
base::OnceCallback<void(bool)> callback) {
|
||||||
// TODO(sentialx): emit event
|
// TODO(sentialx): emit event
|
||||||
}
|
}
|
||||||
~ManagementSetEnabledFunctionInstallPromptDelegate() override {}
|
~ManagementSetEnabledFunctionInstallPromptDelegate() override = default;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
base::WeakPtrFactory<ManagementSetEnabledFunctionInstallPromptDelegate>
|
base::WeakPtrFactory<ManagementSetEnabledFunctionInstallPromptDelegate>
|
||||||
|
@ -61,7 +61,7 @@ class ManagementUninstallFunctionUninstallDialogDelegate
|
||||||
// TODO(sentialx): emit event
|
// TODO(sentialx): emit event
|
||||||
}
|
}
|
||||||
|
|
||||||
~ManagementUninstallFunctionUninstallDialogDelegate() override {}
|
~ManagementUninstallFunctionUninstallDialogDelegate() override = default;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DISALLOW_COPY_AND_ASSIGN(ManagementUninstallFunctionUninstallDialogDelegate);
|
DISALLOW_COPY_AND_ASSIGN(ManagementUninstallFunctionUninstallDialogDelegate);
|
||||||
|
@ -69,9 +69,9 @@ class ManagementUninstallFunctionUninstallDialogDelegate
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
ElectronManagementAPIDelegate::ElectronManagementAPIDelegate() {}
|
ElectronManagementAPIDelegate::ElectronManagementAPIDelegate() = default;
|
||||||
|
|
||||||
ElectronManagementAPIDelegate::~ElectronManagementAPIDelegate() {}
|
ElectronManagementAPIDelegate::~ElectronManagementAPIDelegate() = default;
|
||||||
|
|
||||||
void ElectronManagementAPIDelegate::LaunchAppFunctionDelegate(
|
void ElectronManagementAPIDelegate::LaunchAppFunctionDelegate(
|
||||||
const extensions::Extension* extension,
|
const extensions::Extension* extension,
|
||||||
|
|
|
@ -79,9 +79,11 @@ void AddAdditionalDataForPdf(base::DictionaryValue* dict) {
|
||||||
|
|
||||||
namespace get_strings = api::resources_private::GetStrings;
|
namespace get_strings = api::resources_private::GetStrings;
|
||||||
|
|
||||||
ResourcesPrivateGetStringsFunction::ResourcesPrivateGetStringsFunction() {}
|
ResourcesPrivateGetStringsFunction::ResourcesPrivateGetStringsFunction() =
|
||||||
|
default;
|
||||||
|
|
||||||
ResourcesPrivateGetStringsFunction::~ResourcesPrivateGetStringsFunction() {}
|
ResourcesPrivateGetStringsFunction::~ResourcesPrivateGetStringsFunction() =
|
||||||
|
default;
|
||||||
|
|
||||||
ExtensionFunction::ResponseAction ResourcesPrivateGetStringsFunction::Run() {
|
ExtensionFunction::ResponseAction ResourcesPrivateGetStringsFunction::Run() {
|
||||||
std::unique_ptr<get_strings::Params> params(
|
std::unique_ptr<get_strings::Params> params(
|
||||||
|
|
|
@ -57,7 +57,7 @@ void ZoomModeToZoomSettings(WebContentsZoomController::ZoomMode zoom_mode,
|
||||||
|
|
||||||
ExecuteCodeInTabFunction::ExecuteCodeInTabFunction() : execute_tab_id_(-1) {}
|
ExecuteCodeInTabFunction::ExecuteCodeInTabFunction() : execute_tab_id_(-1) {}
|
||||||
|
|
||||||
ExecuteCodeInTabFunction::~ExecuteCodeInTabFunction() {}
|
ExecuteCodeInTabFunction::~ExecuteCodeInTabFunction() = default;
|
||||||
|
|
||||||
ExecuteCodeFunction::InitResult ExecuteCodeInTabFunction::Init() {
|
ExecuteCodeFunction::InitResult ExecuteCodeInTabFunction::Init() {
|
||||||
if (init_result_)
|
if (init_result_)
|
||||||
|
|
|
@ -47,7 +47,7 @@ ElectronComponentExtensionResourceManager::
|
||||||
}
|
}
|
||||||
|
|
||||||
ElectronComponentExtensionResourceManager::
|
ElectronComponentExtensionResourceManager::
|
||||||
~ElectronComponentExtensionResourceManager() {}
|
~ElectronComponentExtensionResourceManager() = default;
|
||||||
|
|
||||||
bool ElectronComponentExtensionResourceManager::IsComponentExtensionResource(
|
bool ElectronComponentExtensionResourceManager::IsComponentExtensionResource(
|
||||||
const base::FilePath& extension_path,
|
const base::FilePath& extension_path,
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
|
|
||||||
namespace extensions {
|
namespace extensions {
|
||||||
|
|
||||||
ElectronExtensionHostDelegate::ElectronExtensionHostDelegate() {}
|
ElectronExtensionHostDelegate::ElectronExtensionHostDelegate() = default;
|
||||||
|
|
||||||
ElectronExtensionHostDelegate::~ElectronExtensionHostDelegate() {}
|
ElectronExtensionHostDelegate::~ElectronExtensionHostDelegate() = default;
|
||||||
|
|
||||||
void ElectronExtensionHostDelegate::OnExtensionHostCreated(
|
void ElectronExtensionHostDelegate::OnExtensionHostCreated(
|
||||||
content::WebContents* web_contents) {
|
content::WebContents* web_contents) {
|
||||||
|
|
|
@ -31,7 +31,7 @@ ElectronExtensionSystemFactory::ElectronExtensionSystemFactory()
|
||||||
DependsOn(ExtensionRegistryFactory::GetInstance());
|
DependsOn(ExtensionRegistryFactory::GetInstance());
|
||||||
}
|
}
|
||||||
|
|
||||||
ElectronExtensionSystemFactory::~ElectronExtensionSystemFactory() {}
|
ElectronExtensionSystemFactory::~ElectronExtensionSystemFactory() = default;
|
||||||
|
|
||||||
KeyedService* ElectronExtensionSystemFactory::BuildServiceInstanceFor(
|
KeyedService* ElectronExtensionSystemFactory::BuildServiceInstanceFor(
|
||||||
BrowserContext* context) const {
|
BrowserContext* context) const {
|
||||||
|
|
|
@ -10,7 +10,8 @@ ElectronExtensionWebContentsObserver::ElectronExtensionWebContentsObserver(
|
||||||
content::WebContents* web_contents)
|
content::WebContents* web_contents)
|
||||||
: ExtensionWebContentsObserver(web_contents) {}
|
: ExtensionWebContentsObserver(web_contents) {}
|
||||||
|
|
||||||
ElectronExtensionWebContentsObserver::~ElectronExtensionWebContentsObserver() {}
|
ElectronExtensionWebContentsObserver::~ElectronExtensionWebContentsObserver() =
|
||||||
|
default;
|
||||||
|
|
||||||
void ElectronExtensionWebContentsObserver::CreateForWebContents(
|
void ElectronExtensionWebContentsObserver::CreateForWebContents(
|
||||||
content::WebContents* web_contents) {
|
content::WebContents* web_contents) {
|
||||||
|
|
|
@ -51,8 +51,8 @@ class ElectronGuestViewManagerDelegate
|
||||||
class ElectronMimeHandlerViewGuestDelegate
|
class ElectronMimeHandlerViewGuestDelegate
|
||||||
: public MimeHandlerViewGuestDelegate {
|
: public MimeHandlerViewGuestDelegate {
|
||||||
public:
|
public:
|
||||||
ElectronMimeHandlerViewGuestDelegate() {}
|
ElectronMimeHandlerViewGuestDelegate() = default;
|
||||||
~ElectronMimeHandlerViewGuestDelegate() override {}
|
~ElectronMimeHandlerViewGuestDelegate() override = default;
|
||||||
|
|
||||||
// MimeHandlerViewGuestDelegate.
|
// MimeHandlerViewGuestDelegate.
|
||||||
bool HandleContextMenu(content::WebContents* web_contents,
|
bool HandleContextMenu(content::WebContents* web_contents,
|
||||||
|
|
|
@ -72,7 +72,7 @@ ElectronExtensionsBrowserClient::ElectronExtensionsBrowserClient()
|
||||||
std::make_unique<extensions::ElectronExtensionsBrowserAPIProvider>());
|
std::make_unique<extensions::ElectronExtensionsBrowserAPIProvider>());
|
||||||
}
|
}
|
||||||
|
|
||||||
ElectronExtensionsBrowserClient::~ElectronExtensionsBrowserClient() {}
|
ElectronExtensionsBrowserClient::~ElectronExtensionsBrowserClient() = default;
|
||||||
|
|
||||||
bool ElectronExtensionsBrowserClient::IsShuttingDown() {
|
bool ElectronExtensionsBrowserClient::IsShuttingDown() {
|
||||||
return electron::Browser::Get()->is_shutting_down();
|
return electron::Browser::Get()->is_shutting_down();
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
|
|
||||||
namespace electron {
|
namespace electron {
|
||||||
|
|
||||||
ElectronKioskDelegate::ElectronKioskDelegate() {}
|
ElectronKioskDelegate::ElectronKioskDelegate() = default;
|
||||||
|
|
||||||
ElectronKioskDelegate::~ElectronKioskDelegate() {}
|
ElectronKioskDelegate::~ElectronKioskDelegate() = default;
|
||||||
|
|
||||||
bool ElectronKioskDelegate::IsAutoLaunchedKioskApp(
|
bool ElectronKioskDelegate::IsAutoLaunchedKioskApp(
|
||||||
const extensions::ExtensionId& id) const {
|
const extensions::ExtensionId& id) const {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
namespace extensions {
|
namespace extensions {
|
||||||
|
|
||||||
ElectronNavigationUIData::ElectronNavigationUIData() {}
|
ElectronNavigationUIData::ElectronNavigationUIData() = default;
|
||||||
|
|
||||||
ElectronNavigationUIData::ElectronNavigationUIData(
|
ElectronNavigationUIData::ElectronNavigationUIData(
|
||||||
content::NavigationHandle* navigation_handle) {
|
content::NavigationHandle* navigation_handle) {
|
||||||
|
@ -20,7 +20,7 @@ ElectronNavigationUIData::ElectronNavigationUIData(
|
||||||
extension_misc::kUnknownWindowId);
|
extension_misc::kUnknownWindowId);
|
||||||
}
|
}
|
||||||
|
|
||||||
ElectronNavigationUIData::~ElectronNavigationUIData() {}
|
ElectronNavigationUIData::~ElectronNavigationUIData() = default;
|
||||||
|
|
||||||
std::unique_ptr<content::NavigationUIData> ElectronNavigationUIData::Clone() {
|
std::unique_ptr<content::NavigationUIData> ElectronNavigationUIData::Clone() {
|
||||||
std::unique_ptr<ElectronNavigationUIData> copy =
|
std::unique_ptr<ElectronNavigationUIData> copy =
|
||||||
|
|
|
@ -225,7 +225,7 @@ NativeBrowserViewMac::NativeBrowserViewMac(
|
||||||
view.autoresizingMask = kDefaultAutoResizingMask;
|
view.autoresizingMask = kDefaultAutoResizingMask;
|
||||||
}
|
}
|
||||||
|
|
||||||
NativeBrowserViewMac::~NativeBrowserViewMac() {}
|
NativeBrowserViewMac::~NativeBrowserViewMac() = default;
|
||||||
|
|
||||||
void NativeBrowserViewMac::SetAutoResizeFlags(uint8_t flags) {
|
void NativeBrowserViewMac::SetAutoResizeFlags(uint8_t flags) {
|
||||||
NSAutoresizingMaskOptions autoresizing_mask = kDefaultAutoResizingMask;
|
NSAutoresizingMaskOptions autoresizing_mask = kDefaultAutoResizingMask;
|
||||||
|
|
|
@ -450,7 +450,7 @@ NativeWindowMac::NativeWindowMac(const gin_helper::Dictionary& options,
|
||||||
original_level_ = [window_ level];
|
original_level_ = [window_ level];
|
||||||
}
|
}
|
||||||
|
|
||||||
NativeWindowMac::~NativeWindowMac() {}
|
NativeWindowMac::~NativeWindowMac() = default;
|
||||||
|
|
||||||
void NativeWindowMac::SetContentView(views::View* view) {
|
void NativeWindowMac::SetContentView(views::View* view) {
|
||||||
views::View* root_view = GetContentsView();
|
views::View* root_view = GetContentsView();
|
||||||
|
|
|
@ -83,7 +83,7 @@ class AsarURLLoader : public network::mojom::URLLoader {
|
||||||
void ResumeReadingBodyFromNet() override {}
|
void ResumeReadingBodyFromNet() override {}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
AsarURLLoader() {}
|
AsarURLLoader() = default;
|
||||||
~AsarURLLoader() override = default;
|
~AsarURLLoader() override = default;
|
||||||
|
|
||||||
void Start(const network::ResourceRequest& request,
|
void Start(const network::ResourceRequest& request,
|
||||||
|
|
|
@ -63,9 +63,9 @@ NotificationPresenter* NotificationPresenter::Create() {
|
||||||
return presenter.release();
|
return presenter.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
NotificationPresenterWin::NotificationPresenterWin() {}
|
NotificationPresenterWin::NotificationPresenterWin() = default;
|
||||||
|
|
||||||
NotificationPresenterWin::~NotificationPresenterWin() {}
|
NotificationPresenterWin::~NotificationPresenterWin() = default;
|
||||||
|
|
||||||
bool NotificationPresenterWin::Init() {
|
bool NotificationPresenterWin::Init() {
|
||||||
base::ThreadRestrictions::ScopedAllowIO allow_io;
|
base::ThreadRestrictions::ScopedAllowIO allow_io;
|
||||||
|
|
|
@ -596,7 +596,7 @@ bool WindowsToastNotification::RemoveCallbacks(
|
||||||
ToastEventHandler::ToastEventHandler(Notification* notification)
|
ToastEventHandler::ToastEventHandler(Notification* notification)
|
||||||
: notification_(notification->GetWeakPtr()) {}
|
: notification_(notification->GetWeakPtr()) {}
|
||||||
|
|
||||||
ToastEventHandler::~ToastEventHandler() {}
|
ToastEventHandler::~ToastEventHandler() = default;
|
||||||
|
|
||||||
IFACEMETHODIMP ToastEventHandler::Invoke(
|
IFACEMETHODIMP ToastEventHandler::Invoke(
|
||||||
ABI::Windows::UI::Notifications::IToastNotification* sender,
|
ABI::Windows::UI::Notifications::IToastNotification* sender,
|
||||||
|
|
|
@ -14,7 +14,7 @@ PrintViewManagerElectron::PrintViewManagerElectron(
|
||||||
content::WebContents* web_contents)
|
content::WebContents* web_contents)
|
||||||
: PrintViewManagerBase(web_contents) {}
|
: PrintViewManagerBase(web_contents) {}
|
||||||
|
|
||||||
PrintViewManagerElectron::~PrintViewManagerElectron() {}
|
PrintViewManagerElectron::~PrintViewManagerElectron() = default;
|
||||||
|
|
||||||
void PrintViewManagerElectron::SetupScriptedPrintPreview(
|
void PrintViewManagerElectron::SetupScriptedPrintPreview(
|
||||||
SetupScriptedPrintPreviewCallback callback) {
|
SetupScriptedPrintPreviewCallback callback) {
|
||||||
|
|
|
@ -16,7 +16,7 @@ ProtocolRegistry* ProtocolRegistry::FromBrowserContext(
|
||||||
return static_cast<ElectronBrowserContext*>(context)->protocol_registry();
|
return static_cast<ElectronBrowserContext*>(context)->protocol_registry();
|
||||||
}
|
}
|
||||||
|
|
||||||
ProtocolRegistry::ProtocolRegistry() {}
|
ProtocolRegistry::ProtocolRegistry() = default;
|
||||||
|
|
||||||
ProtocolRegistry::~ProtocolRegistry() = default;
|
ProtocolRegistry::~ProtocolRegistry() = default;
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ SerialChooserContextFactory::SerialChooserContextFactory()
|
||||||
"SerialChooserContext",
|
"SerialChooserContext",
|
||||||
BrowserContextDependencyManager::GetInstance()) {}
|
BrowserContextDependencyManager::GetInstance()) {}
|
||||||
|
|
||||||
SerialChooserContextFactory::~SerialChooserContextFactory() {}
|
SerialChooserContextFactory::~SerialChooserContextFactory() = default;
|
||||||
|
|
||||||
KeyedService* SerialChooserContextFactory::BuildServiceInstanceFor(
|
KeyedService* SerialChooserContextFactory::BuildServiceInstanceFor(
|
||||||
content::BrowserContext* context) const {
|
content::BrowserContext* context) const {
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace electron {
|
||||||
DelayedNativeViewHost::DelayedNativeViewHost(gfx::NativeView native_view)
|
DelayedNativeViewHost::DelayedNativeViewHost(gfx::NativeView native_view)
|
||||||
: native_view_(native_view) {}
|
: native_view_(native_view) {}
|
||||||
|
|
||||||
DelayedNativeViewHost::~DelayedNativeViewHost() {}
|
DelayedNativeViewHost::~DelayedNativeViewHost() = default;
|
||||||
|
|
||||||
void DelayedNativeViewHost::ViewHierarchyChanged(
|
void DelayedNativeViewHost::ViewHierarchyChanged(
|
||||||
const views::ViewHierarchyChangedDetails& details) {
|
const views::ViewHierarchyChangedDetails& details) {
|
||||||
|
|
|
@ -16,7 +16,7 @@ ElectronNativeWidgetMac::ElectronNativeWidgetMac(
|
||||||
shell_(shell),
|
shell_(shell),
|
||||||
style_mask_(style_mask) {}
|
style_mask_(style_mask) {}
|
||||||
|
|
||||||
ElectronNativeWidgetMac::~ElectronNativeWidgetMac() {}
|
ElectronNativeWidgetMac::~ElectronNativeWidgetMac() = default;
|
||||||
|
|
||||||
NativeWidgetMacNSWindow* ElectronNativeWidgetMac::CreateNSWindow(
|
NativeWidgetMacNSWindow* ElectronNativeWidgetMac::CreateNSWindow(
|
||||||
const remote_cocoa::mojom::CreateWindowParams* params) {
|
const remote_cocoa::mojom::CreateWindowParams* params) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ RootViewMac::RootViewMac(NativeWindow* window) : window_(window) {
|
||||||
set_owned_by_client();
|
set_owned_by_client();
|
||||||
}
|
}
|
||||||
|
|
||||||
RootViewMac::~RootViewMac() {}
|
RootViewMac::~RootViewMac() = default;
|
||||||
|
|
||||||
void RootViewMac::Layout() {
|
void RootViewMac::Layout() {
|
||||||
if (!window_->content_view()) // Not ready yet.
|
if (!window_->content_view()) // Not ready yet.
|
||||||
|
|
|
@ -9,9 +9,9 @@
|
||||||
|
|
||||||
namespace electron {
|
namespace electron {
|
||||||
|
|
||||||
ViewsDelegateMac::ViewsDelegateMac() {}
|
ViewsDelegateMac::ViewsDelegateMac() = default;
|
||||||
|
|
||||||
ViewsDelegateMac::~ViewsDelegateMac() {}
|
ViewsDelegateMac::~ViewsDelegateMac() = default;
|
||||||
|
|
||||||
void ViewsDelegateMac::OnBeforeWidgetInit(
|
void ViewsDelegateMac::OnBeforeWidgetInit(
|
||||||
views::Widget::InitParams* params,
|
views::Widget::InitParams* params,
|
||||||
|
|
|
@ -13,9 +13,9 @@ namespace electron {
|
||||||
|
|
||||||
const char WinFrameView::kViewClassName[] = "WinFrameView";
|
const char WinFrameView::kViewClassName[] = "WinFrameView";
|
||||||
|
|
||||||
WinFrameView::WinFrameView() {}
|
WinFrameView::WinFrameView() = default;
|
||||||
|
|
||||||
WinFrameView::~WinFrameView() {}
|
WinFrameView::~WinFrameView() = default;
|
||||||
|
|
||||||
gfx::Rect WinFrameView::GetWindowBoundsForClientBounds(
|
gfx::Rect WinFrameView::GetWindowBoundsForClientBounds(
|
||||||
const gfx::Rect& client_bounds) const {
|
const gfx::Rect& client_bounds) const {
|
||||||
|
|
|
@ -23,7 +23,7 @@ ElectronDesktopWindowTreeHostWin::ElectronDesktopWindowTreeHostWin(
|
||||||
desktop_native_widget_aura),
|
desktop_native_widget_aura),
|
||||||
native_window_view_(native_window_view) {}
|
native_window_view_(native_window_view) {}
|
||||||
|
|
||||||
ElectronDesktopWindowTreeHostWin::~ElectronDesktopWindowTreeHostWin() {}
|
ElectronDesktopWindowTreeHostWin::~ElectronDesktopWindowTreeHostWin() = default;
|
||||||
|
|
||||||
bool ElectronDesktopWindowTreeHostWin::PreHandleMSG(UINT message,
|
bool ElectronDesktopWindowTreeHostWin::PreHandleMSG(UINT message,
|
||||||
WPARAM w_param,
|
WPARAM w_param,
|
||||||
|
|
|
@ -55,9 +55,9 @@ TaskbarHost::ThumbarButton::ThumbarButton(const TaskbarHost::ThumbarButton&) =
|
||||||
default;
|
default;
|
||||||
TaskbarHost::ThumbarButton::~ThumbarButton() = default;
|
TaskbarHost::ThumbarButton::~ThumbarButton() = default;
|
||||||
|
|
||||||
TaskbarHost::TaskbarHost() {}
|
TaskbarHost::TaskbarHost() = default;
|
||||||
|
|
||||||
TaskbarHost::~TaskbarHost() {}
|
TaskbarHost::~TaskbarHost() = default;
|
||||||
|
|
||||||
bool TaskbarHost::SetThumbarButtons(HWND window,
|
bool TaskbarHost::SetThumbarButtons(HWND window,
|
||||||
const std::vector<ThumbarButton>& buttons) {
|
const std::vector<ThumbarButton>& buttons) {
|
||||||
|
|
|
@ -16,7 +16,7 @@ ScopedHString::ScopedHString(const std::wstring& source) {
|
||||||
Reset(source);
|
Reset(source);
|
||||||
}
|
}
|
||||||
|
|
||||||
ScopedHString::ScopedHString() {}
|
ScopedHString::ScopedHString() = default;
|
||||||
|
|
||||||
ScopedHString::~ScopedHString() {
|
ScopedHString::~ScopedHString() {
|
||||||
Reset();
|
Reset();
|
||||||
|
|
|
@ -38,7 +38,7 @@ ElectronBindings::ElectronBindings(uv_loop_t* loop) {
|
||||||
metrics_ = base::ProcessMetrics::CreateCurrentProcessMetrics();
|
metrics_ = base::ProcessMetrics::CreateCurrentProcessMetrics();
|
||||||
}
|
}
|
||||||
|
|
||||||
ElectronBindings::~ElectronBindings() {}
|
ElectronBindings::~ElectronBindings() = default;
|
||||||
|
|
||||||
// static
|
// static
|
||||||
void ElectronBindings::BindProcess(v8::Isolate* isolate,
|
void ElectronBindings::BindProcess(v8::Isolate* isolate,
|
||||||
|
|
|
@ -30,8 +30,8 @@ namespace {
|
||||||
class ElectronPermissionMessageProvider
|
class ElectronPermissionMessageProvider
|
||||||
: public extensions::PermissionMessageProvider {
|
: public extensions::PermissionMessageProvider {
|
||||||
public:
|
public:
|
||||||
ElectronPermissionMessageProvider() {}
|
ElectronPermissionMessageProvider() = default;
|
||||||
~ElectronPermissionMessageProvider() override {}
|
~ElectronPermissionMessageProvider() override = default;
|
||||||
|
|
||||||
// PermissionMessageProvider implementation.
|
// PermissionMessageProvider implementation.
|
||||||
extensions::PermissionMessages GetPermissionMessages(
|
extensions::PermissionMessages GetPermissionMessages(
|
||||||
|
@ -70,7 +70,7 @@ ElectronExtensionsClient::ElectronExtensionsClient()
|
||||||
AddAPIProvider(std::make_unique<ElectronExtensionsAPIProvider>());
|
AddAPIProvider(std::make_unique<ElectronExtensionsAPIProvider>());
|
||||||
}
|
}
|
||||||
|
|
||||||
ElectronExtensionsClient::~ElectronExtensionsClient() {}
|
ElectronExtensionsClient::~ElectronExtensionsClient() = default;
|
||||||
|
|
||||||
void ElectronExtensionsClient::Initialize() {
|
void ElectronExtensionsClient::Initialize() {
|
||||||
// TODO(jamescook): Do we need to whitelist any extensions?
|
// TODO(jamescook): Do we need to whitelist any extensions?
|
||||||
|
|
|
@ -17,7 +17,7 @@ namespace electron {
|
||||||
NodeBindingsMac::NodeBindingsMac(BrowserEnvironment browser_env)
|
NodeBindingsMac::NodeBindingsMac(BrowserEnvironment browser_env)
|
||||||
: NodeBindings(browser_env) {}
|
: NodeBindings(browser_env) {}
|
||||||
|
|
||||||
NodeBindingsMac::~NodeBindingsMac() {}
|
NodeBindingsMac::~NodeBindingsMac() = default;
|
||||||
|
|
||||||
void NodeBindingsMac::RunMessageLoop() {
|
void NodeBindingsMac::RunMessageLoop() {
|
||||||
// Get notified when libuv's watcher queue changes.
|
// Get notified when libuv's watcher queue changes.
|
||||||
|
|
|
@ -27,7 +27,7 @@ NodeBindingsWin::NodeBindingsWin(BrowserEnvironment browser_env)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NodeBindingsWin::~NodeBindingsWin() {}
|
NodeBindingsWin::~NodeBindingsWin() = default;
|
||||||
|
|
||||||
void NodeBindingsWin::PollEvents() {
|
void NodeBindingsWin::PollEvents() {
|
||||||
// If there are other kinds of events pending, uv_backend_timeout will
|
// If there are other kinds of events pending, uv_backend_timeout will
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace api {
|
||||||
|
|
||||||
namespace context_bridge {
|
namespace context_bridge {
|
||||||
|
|
||||||
ObjectCache::ObjectCache() {}
|
ObjectCache::ObjectCache() = default;
|
||||||
ObjectCache::~ObjectCache() = default;
|
ObjectCache::~ObjectCache() = default;
|
||||||
|
|
||||||
void ObjectCache::CacheProxiedObject(v8::Local<v8::Value> from,
|
void ObjectCache::CacheProxiedObject(v8::Local<v8::Value> from,
|
||||||
|
|
|
@ -79,7 +79,8 @@ ElectronRendererPepperHostFactory::ElectronRendererPepperHostFactory(
|
||||||
content::RendererPpapiHost* host)
|
content::RendererPpapiHost* host)
|
||||||
: host_(host) {}
|
: host_(host) {}
|
||||||
|
|
||||||
ElectronRendererPepperHostFactory::~ElectronRendererPepperHostFactory() {}
|
ElectronRendererPepperHostFactory::~ElectronRendererPepperHostFactory() =
|
||||||
|
default;
|
||||||
|
|
||||||
std::unique_ptr<ResourceHost>
|
std::unique_ptr<ResourceHost>
|
||||||
ElectronRendererPepperHostFactory::CreateResourceHost(
|
ElectronRendererPepperHostFactory::CreateResourceHost(
|
||||||
|
|
|
@ -18,9 +18,11 @@
|
||||||
|
|
||||||
using extensions::NativeHandler;
|
using extensions::NativeHandler;
|
||||||
|
|
||||||
ElectronExtensionsDispatcherDelegate::ElectronExtensionsDispatcherDelegate() {}
|
ElectronExtensionsDispatcherDelegate::ElectronExtensionsDispatcherDelegate() =
|
||||||
|
default;
|
||||||
|
|
||||||
ElectronExtensionsDispatcherDelegate::~ElectronExtensionsDispatcherDelegate() {}
|
ElectronExtensionsDispatcherDelegate::~ElectronExtensionsDispatcherDelegate() =
|
||||||
|
default;
|
||||||
|
|
||||||
void ElectronExtensionsDispatcherDelegate::RegisterNativeHandlers(
|
void ElectronExtensionsDispatcherDelegate::RegisterNativeHandlers(
|
||||||
extensions::Dispatcher* dispatcher,
|
extensions::Dispatcher* dispatcher,
|
||||||
|
|
|
@ -21,7 +21,7 @@ ElectronExtensionsRendererClient::ElectronExtensionsRendererClient()
|
||||||
dispatcher_->OnRenderThreadStarted(content::RenderThread::Get());
|
dispatcher_->OnRenderThreadStarted(content::RenderThread::Get());
|
||||||
}
|
}
|
||||||
|
|
||||||
ElectronExtensionsRendererClient::~ElectronExtensionsRendererClient() {}
|
ElectronExtensionsRendererClient::~ElectronExtensionsRendererClient() = default;
|
||||||
|
|
||||||
bool ElectronExtensionsRendererClient::IsIncognitoProcess() const {
|
bool ElectronExtensionsRendererClient::IsIncognitoProcess() const {
|
||||||
// app_shell doesn't support off-the-record contexts.
|
// app_shell doesn't support off-the-record contexts.
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
PepperHelper::PepperHelper(content::RenderFrame* render_frame)
|
PepperHelper::PepperHelper(content::RenderFrame* render_frame)
|
||||||
: RenderFrameObserver(render_frame) {}
|
: RenderFrameObserver(render_frame) {}
|
||||||
|
|
||||||
PepperHelper::~PepperHelper() {}
|
PepperHelper::~PepperHelper() = default;
|
||||||
|
|
||||||
void PepperHelper::DidCreatePepperPlugin(content::RendererPpapiHost* host) {
|
void PepperHelper::DidCreatePepperPlugin(content::RendererPpapiHost* host) {
|
||||||
// TODO(brettw) figure out how to hook up the host factory. It needs some
|
// TODO(brettw) figure out how to hook up the host factory. It needs some
|
||||||
|
|
Loading…
Reference in a new issue