From 7c2bd75f7a879f99367858c24b54f0cc4db0f16a Mon Sep 17 00:00:00 2001 From: Sergey Markelov Date: Mon, 25 Dec 2023 15:31:01 -0700 Subject: [PATCH] docs: Fix typos "recieve" -> "receive" --- include/cef_frame_handler.h | 4 ++-- include/cef_life_span_handler.h | 2 +- include/cef_media_router.h | 2 +- include/views/cef_textfield_delegate.h | 2 +- libcef/browser/chrome/chrome_content_browser_client_cef.cc | 2 +- tests/ceftests/process_message_unittest.cc | 6 +++--- tests/ceftests/request_unittest.cc | 2 +- tests/ceftests/send_shared_process_message_unittest.cc | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/cef_frame_handler.h b/include/cef_frame_handler.h index b742623f2..ce4e0fc97 100644 --- a/include/cef_frame_handler.h +++ b/include/cef_frame_handler.h @@ -95,7 +95,7 @@ /// will then be discarded after the real cross-origin sub-frame is created in /// the new/target renderer process. The client will receive cross-origin /// navigation callbacks (2) for the transition from the temporary sub-frame to -/// the real sub-frame. The temporary sub-frame will not recieve or execute +/// the real sub-frame. The temporary sub-frame will not receive or execute /// commands during this transitional period (any sent commands will be /// discarded). /// @@ -103,7 +103,7 @@ /// browser, a temporary main frame object for the popup will first be created /// in the parent's renderer process. That temporary main frame will then be /// discarded after the real cross-origin main frame is created in the -/// new/target renderer process. The client will recieve creation and initial +/// new/target renderer process. The client will receive creation and initial /// navigation callbacks (1) for the temporary main frame, followed by /// cross-origin navigation callbacks (2) for the transition from the temporary /// main frame to the real main frame. The temporary main frame may receive and diff --git a/include/cef_life_span_handler.h b/include/cef_life_span_handler.h index 067a3f9d6..1170cd3b7 100644 --- a/include/cef_life_span_handler.h +++ b/include/cef_life_span_handler.h @@ -131,7 +131,7 @@ class CefLifeSpanHandler : public virtual CefBaseRefCounted { virtual void OnAfterCreated(CefRefPtr browser) {} /// - /// Called when a browser has recieved a request to close. This may result + /// Called when a browser has received a request to close. This may result /// directly from a call to CefBrowserHost::*CloseBrowser() or indirectly if /// the browser is parented to a top-level window created by CEF and the user /// attempts to close that window (by clicking the 'X', for example). The diff --git a/include/cef_media_router.h b/include/cef_media_router.h index eb9ea3f86..a6bbf27ae 100644 --- a/include/cef_media_router.h +++ b/include/cef_media_router.h @@ -145,7 +145,7 @@ class CefMediaObserver : public virtual CefBaseRefCounted { ConnectionState state) = 0; /// - /// A message was recieved over |route|. |message| is only valid for + /// A message was received over |route|. |message| is only valid for /// the scope of this callback and should be copied if necessary. /// /*--cef()--*/ diff --git a/include/views/cef_textfield_delegate.h b/include/views/cef_textfield_delegate.h index aa3660ef9..e3e845305 100644 --- a/include/views/cef_textfield_delegate.h +++ b/include/views/cef_textfield_delegate.h @@ -51,7 +51,7 @@ class CefTextfield; class CefTextfieldDelegate : public CefViewDelegate { public: /// - /// Called when |textfield| recieves a keyboard event. |event| contains + /// Called when |textfield| receives a keyboard event. |event| contains /// information about the keyboard event. Return true if the keyboard event /// was handled or false otherwise for default handling. /// diff --git a/libcef/browser/chrome/chrome_content_browser_client_cef.cc b/libcef/browser/chrome/chrome_content_browser_client_cef.cc index a6572c5f4..3567b9ec8 100644 --- a/libcef/browser/chrome/chrome_content_browser_client_cef.cc +++ b/libcef/browser/chrome/chrome_content_browser_client_cef.cc @@ -335,7 +335,7 @@ bool ChromeContentBrowserClientCef::HandleExternalProtocol( return false; } - // The request was unhandled and we've recieved a callback from + // The request was unhandled and we've received a callback from // HandleExternalProtocolHelper. Forward to the chrome layer for default // handling. return ChromeContentBrowserClient::HandleExternalProtocol( diff --git a/tests/ceftests/process_message_unittest.cc b/tests/ceftests/process_message_unittest.cc index 6da01ee38..585c23217 100644 --- a/tests/ceftests/process_message_unittest.cc +++ b/tests/ceftests/process_message_unittest.cc @@ -119,7 +119,7 @@ class SendRecvTestHandler : public TestHandler { EXPECT_TRUE(message->IsValid()); EXPECT_TRUE(message->IsReadOnly()); - // Verify that the recieved message is the same as the sent message. + // Verify that the received message is the same as the sent message. TestProcessMessageEqual(CreateTestMessage(), message); got_message_.yes(); @@ -155,14 +155,14 @@ class SendRecvTestHandler : public TestHandler { } // namespace -// Verify send from the UI thread and recieve. +// Verify send from the UI thread and receive. TEST(ProcessMessageTest, SendRecvUI) { CefRefPtr handler = new SendRecvTestHandler(TID_UI); handler->ExecuteTest(); ReleaseAndWaitForDestructor(handler); } -// Verify send from the IO thread and recieve. +// Verify send from the IO thread and receive. TEST(ProcessMessageTest, SendRecvIO) { CefRefPtr handler = new SendRecvTestHandler(TID_IO); handler->ExecuteTest(); diff --git a/tests/ceftests/request_unittest.cc b/tests/ceftests/request_unittest.cc index b218352a2..b9ab7795f 100644 --- a/tests/ceftests/request_unittest.cc +++ b/tests/ceftests/request_unittest.cc @@ -370,7 +370,7 @@ class RequestSendRecvTestHandler : public TestHandler { } // namespace -// Verify send and recieve +// Verify send and receive TEST(RequestTest, SendRecv) { CefRefPtr handler = new RequestSendRecvTestHandler(); diff --git a/tests/ceftests/send_shared_process_message_unittest.cc b/tests/ceftests/send_shared_process_message_unittest.cc index 76c2a936d..60973f21f 100644 --- a/tests/ceftests/send_shared_process_message_unittest.cc +++ b/tests/ceftests/send_shared_process_message_unittest.cc @@ -109,7 +109,7 @@ class SharedMessageTestHandler final : public TestHandler { EXPECT_TRUE(message->IsReadOnly()); EXPECT_EQ(message->GetArgumentList(), nullptr); - // Verify that the recieved message is the same as the sent message. + // Verify that the received message is the same as the sent message. auto region = message->GetSharedMemoryRegion(); const TestData* received = static_cast(region->Memory()); EXPECT_EQ(data_.flag, received->flag);