chore: fix spelling errors in multiple files (#34574)

* chore: fix spelling in .circleci

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in BUILD.gn

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in appveyor.yml

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in build

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in docs

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in lib

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in script

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in shell

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in spec

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* chore: fix spelling in spec-main

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2022-06-16 03:46:11 -04:00 committed by GitHub
parent f418a49857
commit ea4278754c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
58 changed files with 88 additions and 88 deletions

View file

@ -160,7 +160,7 @@ class SystemPreferences
std::string current_color_;
bool invertered_color_scheme_ = false;
bool inverted_color_scheme_ = false;
bool high_contrast_color_scheme_ = false;

View file

@ -185,7 +185,7 @@ std::string SystemPreferences::GetMediaAccessStatus(
}
void SystemPreferences::InitializeWindow() {
invertered_color_scheme_ = IsInvertedColorScheme();
inverted_color_scheme_ = IsInvertedColorScheme();
high_contrast_color_scheme_ = IsHighContrastColorScheme();
// Wait until app is ready before creating sys color listener
@ -243,10 +243,10 @@ LRESULT CALLBACK SystemPreferences::WndProc(HWND hwnd,
}
void SystemPreferences::OnSysColorChange() {
bool new_invertered_color_scheme = IsInvertedColorScheme();
if (new_invertered_color_scheme != invertered_color_scheme_) {
invertered_color_scheme_ = new_invertered_color_scheme;
Emit("inverted-color-scheme-changed", new_invertered_color_scheme);
bool new_inverted_color_scheme = IsInvertedColorScheme();
if (new_inverted_color_scheme != inverted_color_scheme_) {
inverted_color_scheme_ = new_inverted_color_scheme;
Emit("inverted-color-scheme-changed", new_inverted_color_scheme);
}
bool new_high_contrast_color_scheme = IsHighContrastColorScheme();

View file

@ -991,7 +991,7 @@ void WebContents::DeleteThisIfAlive() {
}
void WebContents::Destroy() {
// The content::WebContents should be destroyed asyncronously when possible
// The content::WebContents should be destroyed asynchronously when possible
// as user may choose to destroy WebContents during an event of it.
if (Browser::Get()->is_shutting_down() || IsGuest()) {
DeleteThisIfAlive();

View file

@ -64,7 +64,7 @@ bool WebContents::PlatformHandleKeyboardEvent(
[event.os_event.window redispatchKeyEvent:event.os_event];
// FIXME(nornagon): this isn't the right return value; we should implement
// devtools windows as Widgets in order to take advantage of the
// pre-existing redispatch code in bridged_native_widget.
// preexisting redispatch code in bridged_native_widget.
return false;
} else if (event.os_event.window &&
[event.os_event.window

View file

@ -43,7 +43,7 @@ class Event : public gin::Wrappable<Event> {
const char* GetTypeName() override;
private:
// Replyer for the synchronous messages.
// Replier for the synchronous messages.
InvokeCallback callback_;
};

View file

@ -49,7 +49,7 @@ class BrowserObserver : public base::CheckedObserver {
virtual void OnWillFinishLaunching() {}
virtual void OnFinishLaunching(const base::DictionaryValue& launch_info) {}
// The browser's accessibility suppport has changed.
// The browser's accessibility support has changed.
virtual void OnAccessibilitySupportChanged() {}
// The app message loop is ready

View file

@ -131,7 +131,7 @@ void BluetoothChooser::AddOrUpdateDevice(const std::string& device_id,
"select-bluetooth-device", GetDeviceList(),
base::BindOnce(&OnDeviceChosen, event_handler_));
// If emit not implimented select first device that matches the filters
// If emit not implemented select first device that matches the filters
// provided.
if (!prevent_default) {
event_handler_.Run(content::BluetoothChooserEvent::SELECTED, device_id);

View file

@ -1517,7 +1517,7 @@ void NativeWindowViews::OnWidgetActivationChanged(views::Widget* changed_widget,
NativeWindow::NotifyWindowBlur();
}
// Hide menu bar when window is blured.
// Hide menu bar when window is blurred.
if (!active && IsMenuBarAutoHide() && IsMenuBarVisible())
SetMenuBarVisibility(false);

View file

@ -62,7 +62,7 @@ void CalculatePopupXAndWidthHorizontallyCentered(
// Calculate how much the pop-up needs to grow into the non-preferred
// direction.
int amount_to_grow_in_unpreffered_direction =
int amount_to_grow_in_unpreferred_direction =
std::max(0, popup_width - space_to_grow_in_preferred_direction);
bubble_bounds->set_width(popup_width);
@ -70,10 +70,10 @@ void CalculatePopupXAndWidthHorizontallyCentered(
// Note, in RTL the |pop_up_width| must be subtracted to achieve
// right-alignment of the pop-up with the element.
bubble_bounds->set_x(preferred_starting_point - popup_width +
amount_to_grow_in_unpreffered_direction);
amount_to_grow_in_unpreferred_direction);
} else {
bubble_bounds->set_x(preferred_starting_point -
amount_to_grow_in_unpreffered_direction);
amount_to_grow_in_unpreferred_direction);
}
}

View file

@ -17,7 +17,7 @@
}
@dynamic styleMask;
// The Nonactivating mask is reserverd for NSPanel,
// The Nonactivating mask is reserved for NSPanel,
// but we can use this workaround to add it at runtime
- (NSWindowStyleMask)styleMask {
return originalStyleMask | NSWindowStyleMaskNonactivatingPanel;

View file

@ -85,7 +85,7 @@ class InspectableWebContents
void UpdateDevToolsZoomLevel(double level);
private:
// DevToolsEmbedderMessageDispacher::Delegate
// DevToolsEmbedderMessageDispatcher::Delegate
void ActivateWindow() override;
void CloseWindow() override;
void LoadCompleted() override;

View file

@ -47,10 +47,10 @@ class ClientFrameViewLinux : public FramelessView,
// views::WindowButtonOrderObserver:
void OnWindowButtonOrderingChange() override;
// Overriden from FramelessView:
// Overridden from FramelessView:
int ResizingBorderHitTest(const gfx::Point& point) override;
// Overriden from views::NonClientFrameView:
// Overridden from views::NonClientFrameView:
gfx::Rect GetBoundsForClientView() const override;
gfx::Rect GetWindowBoundsForClientBounds(
const gfx::Rect& client_bounds) const override;

View file

@ -51,7 +51,7 @@ bool MonitorHasAutohideTaskbarForEdge(UINT edge, HMONITOR monitor) {
// There is a potential race condition here:
// 1. A maximized chrome window is fullscreened.
// 2. It is switched back to maximized.
// 3. In the process the window gets a WM_NCCACLSIZE message which calls us to
// 3. In the process the window gets a WM_NCCALCSIZE message which calls us to
// get the autohide state.
// 4. The worker thread is invoked. It calls the API to get the autohide
// state. On Windows versions earlier than Windows 7, taskbars could

View file

@ -76,7 +76,7 @@ bool ElectronDesktopWindowTreeHostWin::GetDwmFrameInsetsInPixels(
bool ElectronDesktopWindowTreeHostWin::GetClientAreaInsets(
gfx::Insets* insets,
HMONITOR monitor) const {
// Windows by deafult extends the maximized window slightly larger than
// Windows by default extends the maximized window slightly larger than
// current workspace, for frameless window since the standard frame has been
// removed, the client area would then be drew outside current workspace.
//

View file

@ -388,7 +388,7 @@ void WebContentsPreferences::AppendCommandLineSwitches(
// We are appending args to a webContents so let's save the current state
// of our preferences object so that during the lifetime of the WebContents
// we can fetch the options used to initally configure the WebContents
// we can fetch the options used to initially configure the WebContents
// last_preference_ = preference_.Clone();
SaveLastPreferences();
}

View file

@ -44,7 +44,7 @@ class WebContentsPreferences
void SetFromDictionary(const gin_helper::Dictionary& new_web_preferences);
// Append command paramters according to preferences.
// Append command parameters according to preferences.
void AppendCommandLineSwitches(base::CommandLine* command_line,
bool is_subframe);

View file

@ -19,7 +19,7 @@ namespace cryptotokenPrivate {
DOMString appId;
// The origin of the caller.
DOMString origin;
// Identifies the tab in which the registration is occuring so that any
// Identifies the tab in which the registration is occurring so that any
// permissions prompt is correctly located.
long tabId;
};

View file

@ -93,7 +93,7 @@
{
"type": "object",
"name": "result",
"description": "LanguageDetectionResult object that holds detected langugae reliability and array of DetectedLanguage",
"description": "LanguageDetectionResult object that holds detected language reliability and array of DetectedLanguage",
"properties": {
"isReliable": { "type": "boolean", "description": "CLD detected language reliability" },
"languages":

View file

@ -40,7 +40,7 @@ class EventEmitter : public gin_helper::Wrappable<T> {
using Base = gin_helper::Wrappable<T>;
using ValueArray = std::vector<v8::Local<v8::Value>>;
// Make the convinient methods visible:
// Make the convenient methods visible:
// https://isocpp.org/wiki/faq/templates#nondependent-name-lookup-members
v8::Isolate* isolate() const { return Base::isolate(); }
v8::Local<v8::Object> GetWrapper() const { return Base::GetWrapper(); }

View file

@ -313,7 +313,7 @@ struct CallbackTraits<base::RepeatingCallback<T>> {
// Specialization for member function pointers. We need to handle this case
// specially because the first parameter for callbacks to MFP should typically
// come from the the JavaScript "this" object the function was called on, not
// come from the JavaScript "this" object the function was called on, not
// from the first normal parameter.
template <typename T>
struct CallbackTraits<

View file

@ -50,7 +50,7 @@ class KeyWeakMap {
return v8::Local<v8::Object>::New(isolate, iter->second.second);
}
// Whethere there is an object with |key| in this WeakMap.
// Whether there is an object with |key| in this WeakMap.
bool Has(const K& key) const { return map_.find(key) != map_.end(); }
// Returns all objects.

View file

@ -84,7 +84,7 @@ void ElectronRenderFrameObserver::DidInstallConditionalFeatures(
// When a child window is created with window.open, its WebPreferences will
// be copied from its parent, and Chromium will initialize JS context in it
// immediately.
// Normally the WebPreferences is overriden in browser before navigation,
// Normally the WebPreferences is overridden in browser before navigation,
// but this behavior bypasses the browser side navigation and the child
// window will get wrong WebPreferences in the initialization.
// This will end up initializing Node.js in the child window with wrong