chore: use consistent parameter names (#26162)
This commit is contained in:
parent
52fd855ad4
commit
d8167ce138
12 changed files with 20 additions and 19 deletions
|
@ -90,7 +90,7 @@ class Notification : public gin::Wrappable<Notification>,
|
||||||
void SetSound(const base::string16& sound);
|
void SetSound(const base::string16& sound);
|
||||||
void SetActions(const std::vector<electron::NotificationAction>& actions);
|
void SetActions(const std::vector<electron::NotificationAction>& actions);
|
||||||
void SetCloseButtonText(const base::string16& text);
|
void SetCloseButtonText(const base::string16& text);
|
||||||
void SetToastXml(const base::string16& text);
|
void SetToastXml(const base::string16& new_toast_xml);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
base::string16 title_;
|
base::string16 title_;
|
||||||
|
|
|
@ -63,7 +63,7 @@ class SimpleURLLoaderWrapper
|
||||||
const char* GetTypeName() override;
|
const char* GetTypeName() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SimpleURLLoaderWrapper(std::unique_ptr<network::ResourceRequest> loader,
|
SimpleURLLoaderWrapper(std::unique_ptr<network::ResourceRequest> request,
|
||||||
network::mojom::URLLoaderFactory* url_loader_factory,
|
network::mojom::URLLoaderFactory* url_loader_factory,
|
||||||
int options);
|
int options);
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,8 @@ class View : public gin_helper::Wrappable<View> {
|
||||||
v8::Local<v8::FunctionTemplate> prototype);
|
v8::Local<v8::FunctionTemplate> prototype);
|
||||||
|
|
||||||
#if BUILDFLAG(ENABLE_VIEWS_API)
|
#if BUILDFLAG(ENABLE_VIEWS_API)
|
||||||
void AddChildView(gin::Handle<View> view);
|
void AddChildView(gin::Handle<View> child);
|
||||||
void AddChildViewAt(gin::Handle<View> view, size_t index);
|
void AddChildViewAt(gin::Handle<View> child, size_t index);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
views::View* view() const { return view_; }
|
views::View* view() const { return view_; }
|
||||||
|
|
|
@ -32,7 +32,7 @@ class MessagePort : public gin::Wrappable<MessagePort>, mojo::MessageReceiver {
|
||||||
void Start();
|
void Start();
|
||||||
void Close();
|
void Close();
|
||||||
|
|
||||||
void Entangle(blink::MessagePortDescriptor handle);
|
void Entangle(blink::MessagePortDescriptor port);
|
||||||
void Entangle(blink::MessagePortChannel channel);
|
void Entangle(blink::MessagePortChannel channel);
|
||||||
|
|
||||||
blink::MessagePortChannel Disentangle();
|
blink::MessagePortChannel Disentangle();
|
||||||
|
|
|
@ -99,7 +99,7 @@ class ElectronBrowserClient : public content::ContentBrowserClient,
|
||||||
content::BrowserContext* browser_context,
|
content::BrowserContext* browser_context,
|
||||||
const GURL& url,
|
const GURL& url,
|
||||||
bool has_navigation_started,
|
bool has_navigation_started,
|
||||||
bool has_request_started,
|
bool has_response_started,
|
||||||
content::SiteInstance** affinity_site_instance) const override;
|
content::SiteInstance** affinity_site_instance) const override;
|
||||||
void RegisterPendingSiteInstance(
|
void RegisterPendingSiteInstance(
|
||||||
content::RenderFrameHost* render_frame_host,
|
content::RenderFrameHost* render_frame_host,
|
||||||
|
@ -288,13 +288,13 @@ class ElectronBrowserClient : public content::ContentBrowserClient,
|
||||||
content::RenderFrameHost* speculative_rfh,
|
content::RenderFrameHost* speculative_rfh,
|
||||||
content::BrowserContext* browser_context,
|
content::BrowserContext* browser_context,
|
||||||
const GURL& dest_url,
|
const GURL& dest_url,
|
||||||
bool has_request_started) const;
|
bool has_response_started) const;
|
||||||
bool NavigationWasRedirectedCrossSite(
|
bool NavigationWasRedirectedCrossSite(
|
||||||
content::BrowserContext* browser_context,
|
content::BrowserContext* browser_context,
|
||||||
content::SiteInstance* current_instance,
|
content::SiteInstance* current_instance,
|
||||||
content::SiteInstance* speculative_instance,
|
content::SiteInstance* speculative_instance,
|
||||||
const GURL& dest_url,
|
const GURL& dest_url,
|
||||||
bool has_request_started) const;
|
bool has_response_started) const;
|
||||||
void AddProcessPreferences(int process_id, ProcessPreferences prefs);
|
void AddProcessPreferences(int process_id, ProcessPreferences prefs);
|
||||||
void RemoveProcessPreferences(int process_id);
|
void RemoveProcessPreferences(int process_id);
|
||||||
bool IsProcessObserved(int process_id) const;
|
bool IsProcessObserved(int process_id) const;
|
||||||
|
|
|
@ -41,7 +41,7 @@ class ElectronDownloadManagerDelegate
|
||||||
// Get the save path set on the associated api::DownloadItem object
|
// Get the save path set on the associated api::DownloadItem object
|
||||||
void GetItemSavePath(download::DownloadItem* item, base::FilePath* path);
|
void GetItemSavePath(download::DownloadItem* item, base::FilePath* path);
|
||||||
void GetItemSaveDialogOptions(download::DownloadItem* item,
|
void GetItemSaveDialogOptions(download::DownloadItem* item,
|
||||||
file_dialog::DialogSettings* settings);
|
file_dialog::DialogSettings* options);
|
||||||
|
|
||||||
void OnDownloadPathGenerated(uint32_t download_id,
|
void OnDownloadPathGenerated(uint32_t download_id,
|
||||||
content::DownloadTargetCallback callback,
|
content::DownloadTargetCallback callback,
|
||||||
|
|
|
@ -350,7 +350,7 @@ bool NativeWindow::AddTabbedWindow(NativeWindow* window) {
|
||||||
return true; // for non-Mac platforms
|
return true; // for non-Mac platforms
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeWindow::SetVibrancy(const std::string& filename) {}
|
void NativeWindow::SetVibrancy(const std::string& type) {}
|
||||||
|
|
||||||
void NativeWindow::SetTouchBar(
|
void NativeWindow::SetTouchBar(
|
||||||
std::vector<gin_helper::PersistentDictionary> items) {}
|
std::vector<gin_helper::PersistentDictionary> items) {}
|
||||||
|
|
|
@ -122,7 +122,7 @@ class ProxyingWebSocket : public network::mojom::WebSocketHandshakeClient,
|
||||||
|
|
||||||
void PauseIncomingMethodCallProcessing();
|
void PauseIncomingMethodCallProcessing();
|
||||||
void ResumeIncomingMethodCallProcessing();
|
void ResumeIncomingMethodCallProcessing();
|
||||||
void OnError(int result);
|
void OnError(int error_code);
|
||||||
// This is used for detecting errors on mojo connection with the network
|
// This is used for detecting errors on mojo connection with the network
|
||||||
// service.
|
// service.
|
||||||
void OnMojoConnectionErrorWithCustomReason(uint32_t custom_reason,
|
void OnMojoConnectionErrorWithCustomReason(uint32_t custom_reason,
|
||||||
|
|
|
@ -66,7 +66,7 @@ class WindowsToastNotification : public Notification {
|
||||||
const std::wstring& icon_path,
|
const std::wstring& icon_path,
|
||||||
const std::wstring& timeout_type,
|
const std::wstring& timeout_type,
|
||||||
const bool silent,
|
const bool silent,
|
||||||
ABI::Windows::Data::Xml::Dom::IXmlDocument** toastXml);
|
ABI::Windows::Data::Xml::Dom::IXmlDocument** toast_xml);
|
||||||
HRESULT SetXmlAudioSilent(ABI::Windows::Data::Xml::Dom::IXmlDocument* doc);
|
HRESULT SetXmlAudioSilent(ABI::Windows::Data::Xml::Dom::IXmlDocument* doc);
|
||||||
HRESULT SetXmlScenarioReminder(
|
HRESULT SetXmlScenarioReminder(
|
||||||
ABI::Windows::Data::Xml::Dom::IXmlDocument* doc);
|
ABI::Windows::Data::Xml::Dom::IXmlDocument* doc);
|
||||||
|
@ -77,10 +77,11 @@ class WindowsToastNotification : public Notification {
|
||||||
const std::wstring& body);
|
const std::wstring& body);
|
||||||
HRESULT SetXmlImage(ABI::Windows::Data::Xml::Dom::IXmlDocument* doc,
|
HRESULT SetXmlImage(ABI::Windows::Data::Xml::Dom::IXmlDocument* doc,
|
||||||
const std::wstring& icon_path);
|
const std::wstring& icon_path);
|
||||||
HRESULT GetTextNodeList(ScopedHString* tag,
|
HRESULT GetTextNodeList(
|
||||||
ABI::Windows::Data::Xml::Dom::IXmlDocument* doc,
|
ScopedHString* tag,
|
||||||
ABI::Windows::Data::Xml::Dom::IXmlNodeList** nodeList,
|
ABI::Windows::Data::Xml::Dom::IXmlDocument* doc,
|
||||||
uint32_t reqLength);
|
ABI::Windows::Data::Xml::Dom::IXmlNodeList** node_list,
|
||||||
|
uint32_t req_length);
|
||||||
HRESULT AppendTextToXml(ABI::Windows::Data::Xml::Dom::IXmlDocument* doc,
|
HRESULT AppendTextToXml(ABI::Windows::Data::Xml::Dom::IXmlDocument* doc,
|
||||||
ABI::Windows::Data::Xml::Dom::IXmlNode* node,
|
ABI::Windows::Data::Xml::Dom::IXmlNode* node,
|
||||||
const std::wstring& text);
|
const std::wstring& text);
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
namespace electron {
|
namespace electron {
|
||||||
|
|
||||||
// Parse hex color like "#FFF" or "#EFEFEF"
|
// Parse hex color like "#FFF" or "#EFEFEF"
|
||||||
SkColor ParseHexColor(const std::string& name);
|
SkColor ParseHexColor(const std::string& color_string);
|
||||||
|
|
||||||
// Convert color to RGB hex value like "#ABCDEF"
|
// Convert color to RGB hex value like "#ABCDEF"
|
||||||
std::string ToRGBHex(SkColor color);
|
std::string ToRGBHex(SkColor color);
|
||||||
|
|
|
@ -21,7 +21,7 @@ void ProxyFunctionWrapper(const v8::FunctionCallbackInfo<v8::Value>& info);
|
||||||
v8::MaybeLocal<v8::Object> CreateProxyForAPI(
|
v8::MaybeLocal<v8::Object> CreateProxyForAPI(
|
||||||
const v8::Local<v8::Object>& api_object,
|
const v8::Local<v8::Object>& api_object,
|
||||||
const v8::Local<v8::Context>& source_context,
|
const v8::Local<v8::Context>& source_context,
|
||||||
const v8::Local<v8::Context>& target_context,
|
const v8::Local<v8::Context>& destination_context,
|
||||||
context_bridge::ObjectCache* object_cache,
|
context_bridge::ObjectCache* object_cache,
|
||||||
bool support_dynamic_properties,
|
bool support_dynamic_properties,
|
||||||
int recursion_depth);
|
int recursion_depth);
|
||||||
|
|
|
@ -28,7 +28,7 @@ class ElectronExtensionsDispatcherDelegate
|
||||||
extensions::ResourceBundleSourceMap* source_map) override;
|
extensions::ResourceBundleSourceMap* source_map) override;
|
||||||
void RequireWebViewModules(extensions::ScriptContext* context) override;
|
void RequireWebViewModules(extensions::ScriptContext* context) override;
|
||||||
void OnActiveExtensionsUpdated(
|
void OnActiveExtensionsUpdated(
|
||||||
const std::set<std::string>& extensions_ids) override;
|
const std::set<std::string>& extension_ids) override;
|
||||||
void InitializeBindingsSystem(
|
void InitializeBindingsSystem(
|
||||||
extensions::Dispatcher* dispatcher,
|
extensions::Dispatcher* dispatcher,
|
||||||
extensions::NativeExtensionBindingsSystem* bindings_system) override;
|
extensions::NativeExtensionBindingsSystem* bindings_system) override;
|
||||||
|
|
Loading…
Reference in a new issue