mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: declare gin::Wrapper subclasses as final (#43783)
refactor: declare gin::Wrapper subclasses as final (#43527) As per the gin docs: "Wrappable<T> explicitly does not support further subclassing of T. Subclasses of Wrappable<T> should be declared final."
This commit is contained in:
@@ -41,8 +41,8 @@ RenderFrame* GetCurrentRenderFrame() {
|
||||
return RenderFrame::FromWebFrame(frame);
|
||||
}
|
||||
|
||||
class IPCRenderer : public gin::Wrappable<IPCRenderer>,
|
||||
public content::RenderFrameObserver {
|
||||
class IPCRenderer final : public gin::Wrappable<IPCRenderer>,
|
||||
public content::RenderFrameObserver {
|
||||
public:
|
||||
static gin::WrapperInfo kWrapperInfo;
|
||||
|
||||
|
||||
@@ -329,8 +329,8 @@ class SpellCheckerHolder final : public content::RenderFrameObserver {
|
||||
|
||||
} // namespace
|
||||
|
||||
class WebFrameRenderer : public gin::Wrappable<WebFrameRenderer>,
|
||||
public content::RenderFrameObserver {
|
||||
class WebFrameRenderer final : public gin::Wrappable<WebFrameRenderer>,
|
||||
public content::RenderFrameObserver {
|
||||
public:
|
||||
static gin::WrapperInfo kWrapperInfo;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user