From c4aebe3ba13603beb954e5da7cb55fe8024f0973 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 6 Nov 2014 19:04:50 +0800 Subject: [PATCH] No need to write "virtual" when we have "override" --- .../inspectable_web_contents_view_views.cc | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/brightray/browser/views/inspectable_web_contents_view_views.cc b/brightray/browser/views/inspectable_web_contents_view_views.cc index 9aa4d0f748a2..3fd182433877 100644 --- a/brightray/browser/views/inspectable_web_contents_view_views.cc +++ b/brightray/browser/views/inspectable_web_contents_view_views.cc @@ -34,20 +34,20 @@ class DevToolsWindowDelegate : public views::ClientView, virtual ~DevToolsWindowDelegate() {} // views::WidgetDelegate: - virtual void DeleteDelegate() override { delete this; } - virtual views::View* GetInitiallyFocusedView() override { return view_; } - virtual bool CanResize() const override { return true; } - virtual bool CanMaximize() const override { return true; } - virtual base::string16 GetWindowTitle() const override { return title_; } - virtual gfx::ImageSkia GetWindowAppIcon() override { return GetWindowIcon(); } - virtual gfx::ImageSkia GetWindowIcon() override { return icon_; } - virtual views::Widget* GetWidget() override { return widget_; } - virtual const views::Widget* GetWidget() const override { return widget_; } - virtual views::View* GetContentsView() override { return view_; } - virtual views::ClientView* CreateClientView(views::Widget* widget) { return this; } + void DeleteDelegate() override { delete this; } + views::View* GetInitiallyFocusedView() override { return view_; } + bool CanResize() const override { return true; } + bool CanMaximize() const override { return true; } + base::string16 GetWindowTitle() const override { return title_; } + gfx::ImageSkia GetWindowAppIcon() override { return GetWindowIcon(); } + gfx::ImageSkia GetWindowIcon() override { return icon_; } + views::Widget* GetWidget() override { return widget_; } + const views::Widget* GetWidget() const override { return widget_; } + views::View* GetContentsView() override { return view_; } + views::ClientView* CreateClientView(views::Widget* widget) { return this; } // views::ClientView: - virtual bool CanClose() override { + bool CanClose() override { shell_->inspectable_web_contents()->CloseDevTools(); return false; }