Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(653)

Unified Diff: Source/core/events/KeyboardEvent.h

Issue 1232333002: Fix virtual/override/final usage in the rest of Source/core/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/events/HashChangeEvent.h ('k') | Source/core/events/MessageEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/KeyboardEvent.h
diff --git a/Source/core/events/KeyboardEvent.h b/Source/core/events/KeyboardEvent.h
index bbe262322d4756d6b72b0c6b740063ecc9ffa7df..07f3430366f1a72538f7887da537ad931cc3703b 100644
--- a/Source/core/events/KeyboardEvent.h
+++ b/Source/core/events/KeyboardEvent.h
@@ -64,7 +64,7 @@ public:
ctrlKey, altKey, shiftKey, metaKey));
}
- virtual ~KeyboardEvent();
+ ~KeyboardEvent() override;
void initKeyboardEvent(ScriptState*, const AtomicString& type, bool canBubble, bool cancelable, AbstractView*,
const String& keyIdentifier, unsigned location,
@@ -80,13 +80,13 @@ public:
const PlatformKeyboardEvent* keyEvent() const { return m_keyEvent.get(); }
- virtual int keyCode() const override; // key code for keydown and keyup, character for keypress
- virtual int charCode() const override; // character code for keypress, 0 for keydown and keyup
+ int keyCode() const override; // key code for keydown and keyup, character for keypress
+ int charCode() const override; // character code for keypress, 0 for keydown and keyup
bool repeat() const { return m_isAutoRepeat; }
- virtual const AtomicString& interfaceName() const override;
- virtual bool isKeyboardEvent() const override;
- virtual int which() const override;
+ const AtomicString& interfaceName() const override;
+ bool isKeyboardEvent() const override;
+ int which() const override;
DECLARE_VIRTUAL_TRACE();
@@ -111,7 +111,7 @@ public:
static PassRefPtrWillBeRawPtr<KeyboardEventDispatchMediator> create(PassRefPtrWillBeRawPtr<KeyboardEvent>);
private:
explicit KeyboardEventDispatchMediator(PassRefPtrWillBeRawPtr<KeyboardEvent>);
- virtual bool dispatchEvent(EventDispatcher&) const override;
+ bool dispatchEvent(EventDispatcher&) const override;
};
DEFINE_EVENT_TYPE_CASTS(KeyboardEvent);
« no previous file with comments | « Source/core/events/HashChangeEvent.h ('k') | Source/core/events/MessageEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698