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

Unified Diff: ui/views/controls/native/native_view_host.h

Issue 681883002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « ui/views/controls/message_box_view.h ('k') | ui/views/controls/native/native_view_host_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/native/native_view_host.h
diff --git a/ui/views/controls/native/native_view_host.h b/ui/views/controls/native/native_view_host.h
index db8d7bb1ef40f009183aa98a5528bd8bbeb2e04e..4b4109377e3ed7317bfc174f78802c2f3635a721 100644
--- a/ui/views/controls/native/native_view_host.h
+++ b/ui/views/controls/native/native_view_host.h
@@ -31,7 +31,7 @@ class VIEWS_EXPORT NativeViewHost : public View {
static const char kViewClassName[];
NativeViewHost();
- virtual ~NativeViewHost();
+ ~NativeViewHost() override;
// Attach a gfx::NativeView to this View. Its bounds will be kept in sync
// with the bounds of this View until Detach is called.
@@ -79,20 +79,20 @@ class VIEWS_EXPORT NativeViewHost : public View {
void NativeViewDestroyed();
// Overridden from View:
- virtual gfx::Size GetPreferredSize() const override;
- virtual void Layout() override;
- virtual void OnPaint(gfx::Canvas* canvas) override;
- virtual void VisibilityChanged(View* starting_from, bool is_visible) override;
- virtual void OnFocus() override;
- virtual gfx::NativeViewAccessible GetNativeViewAccessible() override;
- virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override;
+ gfx::Size GetPreferredSize() const override;
+ void Layout() override;
+ void OnPaint(gfx::Canvas* canvas) override;
+ void VisibilityChanged(View* starting_from, bool is_visible) override;
+ void OnFocus() override;
+ gfx::NativeViewAccessible GetNativeViewAccessible() override;
+ gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override;
protected:
- virtual bool GetNeedsNotificationWhenVisibleBoundsChange() const override;
- virtual void OnVisibleBoundsChanged() override;
- virtual void ViewHierarchyChanged(
+ bool GetNeedsNotificationWhenVisibleBoundsChange() const override;
+ void OnVisibleBoundsChanged() override;
+ void ViewHierarchyChanged(
const ViewHierarchyChangedDetails& details) override;
- virtual const char* GetClassName() const override;
+ const char* GetClassName() const override;
private:
friend class test::NativeViewHostTestBase;
« no previous file with comments | « ui/views/controls/message_box_view.h ('k') | ui/views/controls/native/native_view_host_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698