No need to write "virtual" when we have "override"

This commit is contained in:
Cheng Zhao 2014-11-06 19:04:50 +08:00
parent 21e0907bfc
commit c4aebe3ba1

View file

@ -34,20 +34,20 @@ class DevToolsWindowDelegate : public views::ClientView,
virtual ~DevToolsWindowDelegate() {} virtual ~DevToolsWindowDelegate() {}
// views::WidgetDelegate: // views::WidgetDelegate:
virtual void DeleteDelegate() override { delete this; } void DeleteDelegate() override { delete this; }
virtual views::View* GetInitiallyFocusedView() override { return view_; } views::View* GetInitiallyFocusedView() override { return view_; }
virtual bool CanResize() const override { return true; } bool CanResize() const override { return true; }
virtual bool CanMaximize() const override { return true; } bool CanMaximize() const override { return true; }
virtual base::string16 GetWindowTitle() const override { return title_; } base::string16 GetWindowTitle() const override { return title_; }
virtual gfx::ImageSkia GetWindowAppIcon() override { return GetWindowIcon(); } gfx::ImageSkia GetWindowAppIcon() override { return GetWindowIcon(); }
virtual gfx::ImageSkia GetWindowIcon() override { return icon_; } gfx::ImageSkia GetWindowIcon() override { return icon_; }
virtual views::Widget* GetWidget() override { return widget_; } views::Widget* GetWidget() override { return widget_; }
virtual const views::Widget* GetWidget() const override { return widget_; } const views::Widget* GetWidget() const override { return widget_; }
virtual views::View* GetContentsView() override { return view_; } views::View* GetContentsView() override { return view_; }
virtual views::ClientView* CreateClientView(views::Widget* widget) { return this; } views::ClientView* CreateClientView(views::Widget* widget) { return this; }
// views::ClientView: // views::ClientView:
virtual bool CanClose() override { bool CanClose() override {
shell_->inspectable_web_contents()->CloseDevTools(); shell_->inspectable_web_contents()->CloseDevTools();
return false; return false;
} }