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() {}
// 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;
}