electron/shell/browser/window_list_observer.h
trop[bot] d1fe7d2227
fix: modernize-use-equals-default warnings (#44946)
fix: use '= default' to define a trivial destructor [modernize-use-equals-default]

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-12-03 21:19:47 -06:00

28 lines
767 B
C++

// Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ELECTRON_SHELL_BROWSER_WINDOW_LIST_OBSERVER_H_
#define ELECTRON_SHELL_BROWSER_WINDOW_LIST_OBSERVER_H_
#include "base/observer_list_types.h"
namespace electron {
class NativeWindow;
class WindowListObserver : public base::CheckedObserver {
public:
// Called when a window close is cancelled by beforeunload handler.
virtual void OnWindowCloseCancelled(NativeWindow* window) {}
// Called immediately after all windows are closed.
virtual void OnWindowAllClosed() {}
protected:
~WindowListObserver() override = default;
};
} // namespace electron
#endif // ELECTRON_SHELL_BROWSER_WINDOW_LIST_OBSERVER_H_