Correct misspelling of destroy in method name

This commit is contained in:
Kevin Sawicki 2016-08-25 11:24:16 -07:00
parent 9548184b15
commit 7a0129bbc7
4 changed files with 4 additions and 4 deletions

View file

@ -137,7 +137,7 @@ void Window::WillCloseWindow(bool* prevent_default) {
*prevent_default = Emit("close");
}
void Window::WillDestoryNativeObject() {
void Window::WillDestroyNativeObject() {
// Close all child windows before closing current window.
v8::Locker locker(isolate());
v8::HandleScope handle_scope(isolate());

View file

@ -58,7 +58,7 @@ class Window : public mate::TrackableObject<Window>,
// NativeWindowObserver:
void WillCloseWindow(bool* prevent_default) override;
void WillDestoryNativeObject() override;
void WillDestroyNativeObject() override;
void OnWindowClosed() override;
void OnWindowBlur() override;
void OnWindowFocus() override;

View file

@ -405,7 +405,7 @@ void NativeWindow::CloseContents(content::WebContents* source) {
Observe(nullptr);
FOR_EACH_OBSERVER(NativeWindowObserver, observers_,
WillDestoryNativeObject());
WillDestroyNativeObject());
// When the web contents is gone, close the window immediately, but the
// memory will not be freed until you call delete.

View file

@ -34,7 +34,7 @@ class NativeWindowObserver {
virtual void WillCloseWindow(bool* prevent_default) {}
// Called before the native window object is going to be destroyed.
virtual void WillDestoryNativeObject() {}
virtual void WillDestroyNativeObject() {}
// Called when the window is closed.
virtual void OnWindowClosed() {}