summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/bridge/qt/qt_instance.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/bridge/qt/qt_instance.h')
-rw-r--r--Source/WebCore/bridge/qt/qt_instance.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/Source/WebCore/bridge/qt/qt_instance.h b/Source/WebCore/bridge/qt/qt_instance.h
index 844a5c3ec..5d5c9c6f7 100644
--- a/Source/WebCore/bridge/qt/qt_instance.h
+++ b/Source/WebCore/bridge/qt/qt_instance.h
@@ -58,7 +58,7 @@ private:
RefPtr<WeakMapImpl> m_impl;
};
-class QtInstance : public Instance {
+class QtInstance final : public Instance {
public:
enum ValueOwnership {
QtOwnership,
@@ -68,19 +68,16 @@ public:
~QtInstance();
- virtual Class* getClass() const;
- virtual RuntimeObject* newRuntimeObject(ExecState*);
+ Class* getClass() const override;
+ RuntimeObject* newRuntimeObject(ExecState*) final;
- virtual void begin();
- virtual void end();
+ JSValue valueOf(ExecState*) const final;
+ JSValue defaultValue(ExecState*, PreferredPrimitiveType) const final;
- virtual JSValue valueOf(ExecState*) const;
- virtual JSValue defaultValue(ExecState*, PreferredPrimitiveType) const;
+ JSValue getMethod(ExecState*, PropertyName) final;
+ JSValue invokeMethod(ExecState*, RuntimeMethod*) final;
- virtual JSValue getMethod(ExecState*, PropertyName);
- virtual JSValue invokeMethod(ExecState*, RuntimeMethod*);
-
- virtual void getPropertyNames(ExecState*, PropertyNameArray&);
+ void getPropertyNames(ExecState*, PropertyNameArray&) final;
JSValue stringValue(ExecState*) const;
JSValue numberValue(ExecState*) const;
@@ -91,8 +88,8 @@ public:
static PassRefPtr<QtInstance> getQtInstance(QObject*, PassRefPtr<RootObject>, ValueOwnership);
- virtual bool getOwnPropertySlot(JSObject*, ExecState*, PropertyName, PropertySlot&);
- virtual void put(JSObject*, ExecState*, PropertyName, JSValue, PutPropertySlot&);
+ bool getOwnPropertySlot(JSObject*, ExecState*, PropertyName, PropertySlot&) final;
+ void put(JSObject*, ExecState*, PropertyName, JSValue, PutPropertySlot&) final;
static QtInstance* getInstance(JSObject*);