docs: fix spelling errors in code comments (#45842)

chore: Fix typos
This commit is contained in:
co63oc 2025-02-28 19:24:00 +08:00 committed by GitHub
parent 3041fd66cd
commit 36ec9d7236
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 7 deletions

View file

@ -44,7 +44,7 @@ class PowerMonitor final : public gin::Wrappable<PowerMonitor>,
void SetListeningForShutdown(bool); void SetListeningForShutdown(bool);
#endif #endif
// Called by native calles. // Called by native callers.
bool ShouldShutdown(); bool ShouldShutdown();
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)

View file

@ -847,7 +847,7 @@ class WebContents final : public ExclusiveAccessContext,
const scoped_refptr<base::TaskRunner> print_task_runner_; const scoped_refptr<base::TaskRunner> print_task_runner_;
#endif #endif
// Stores the frame thats currently in fullscreen, nullptr if there is none. // Stores the frame that's currently in fullscreen, nullptr if there is none.
raw_ptr<content::RenderFrameHost> fullscreen_frame_ = nullptr; raw_ptr<content::RenderFrameHost> fullscreen_frame_ = nullptr;
std::unique_ptr<SkRegion> draggable_region_; std::unique_ptr<SkRegion> draggable_region_;

View file

@ -151,7 +151,7 @@ class NativeWindowViews : public NativeWindow,
#if BUILDFLAG(IS_WIN) #if BUILDFLAG(IS_WIN)
// Catch-all message handling and filtering. Called before // Catch-all message handling and filtering. Called before
// HWNDMessageHandler's built-in handling, which may pre-empt some // HWNDMessageHandler's built-in handling, which may preempt some
// expectations in Views/Aura if messages are consumed. Returns true if the // expectations in Views/Aura if messages are consumed. Returns true if the
// message was consumed by the delegate and should not be processed further // message was consumed by the delegate and should not be processed further
// by the HWNDMessageHandler. In this case, |result| is returned. |result| is // by the HWNDMessageHandler. In this case, |result| is returned. |result| is

View file

@ -195,7 +195,7 @@ void ThemeDataSource::SendColorsCss(
css_selector = ":host"; css_selector = ":host";
} else { } else {
// This selector requires more specificity than other existing CSS // This selector requires more specificity than other existing CSS
// selectors that define variables. We increase the specifity by adding // selectors that define variables. We increase the specificity by adding
// a pseudoselector. // a pseudoselector.
css_selector = "html:not(#z)"; css_selector = "html:not(#z)";
} }

View file

@ -23,7 +23,7 @@ SubmenuButton::SubmenuButton(PressedCallback callback,
: views::MenuButton(std::move(callback), gfx::RemoveAccelerator(title)), : views::MenuButton(std::move(callback), gfx::RemoveAccelerator(title)),
background_color_(background_color) { background_color_(background_color) {
#if BUILDFLAG(IS_LINUX) #if BUILDFLAG(IS_LINUX)
// Dont' use native style border. // Don't use native style border.
SetBorder(CreateDefaultBorder()); SetBorder(CreateDefaultBorder());
#endif #endif
SetAccessibleRole(ax::mojom::Role::kPopUpButton); SetAccessibleRole(ax::mojom::Role::kPopUpButton);

View file

@ -99,7 +99,7 @@ bool ElectronDesktopWindowTreeHostWin::HandleMouseEventForCaption(
// Chromium lets the OS handle caption buttons for FrameMode::SYSTEM_DRAWN but // Chromium lets the OS handle caption buttons for FrameMode::SYSTEM_DRAWN but
// again this does not generate the SC_MINIMIZE, SC_MAXIMIZE, SC_RESTORE // again this does not generate the SC_MINIMIZE, SC_MAXIMIZE, SC_RESTORE
// commands when Non-client mouse events are generated for HTCLOSE, // commands when Non-client mouse events are generated for HTCLOSE,
// HTMINBUTTON, HTMAXBUTTON. To workaround this issue, wit this delegate we // HTMINBUTTON, HTMAXBUTTON. To workaround this issue, with this delegate we
// let chromium handle the mouse events via // let chromium handle the mouse events via
// HWNDMessageHandler::HandleMouseInputForCaption instead of the OS and this // HWNDMessageHandler::HandleMouseInputForCaption instead of the OS and this
// will generate the necessary system commands to perform caption button // will generate the necessary system commands to perform caption button

View file

@ -104,7 +104,7 @@ bool Converter<gin_helper::AccessorValue<content::RenderFrameHost*>>::FromV8(
auto* rfh = content::RenderFrameHost::FromID(process_id, routing_id); auto* rfh = content::RenderFrameHost::FromID(process_id, routing_id);
if (!rfh) { if (!rfh) {
// Lazily evaluted property accessed after RFH has been destroyed. // Lazily evaluated property accessed after RFH has been destroyed.
// Continue to return nullptr, but emit warning to inform developers // Continue to return nullptr, but emit warning to inform developers
// what occurred. // what occurred.
electron::util::EmitWarning( electron::util::EmitWarning(