};
MockRenderViewContextMenu() : observer_(NULL), profile_(new TestingProfile) {}
- virtual ~MockRenderViewContextMenu() {}
+ ~MockRenderViewContextMenu() override {}
// SimpleMenuModel::Delegate implementation.
- virtual bool IsCommandIdChecked(int command_id) const OVERRIDE {
+ bool IsCommandIdChecked(int command_id) const override {
return observer_->IsCommandIdChecked(command_id);
}
- virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE {
+ bool IsCommandIdEnabled(int command_id) const override {
return observer_->IsCommandIdEnabled(command_id);
}
- virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE {
+ void ExecuteCommand(int command_id, int event_flags) override {
observer_->ExecuteCommand(command_id);
}
- virtual void MenuWillShow(ui::SimpleMenuModel* source) OVERRIDE {}
- virtual void MenuClosed(ui::SimpleMenuModel* source) OVERRIDE {}
- virtual bool GetAcceleratorForCommandId(
- int command_id,
- ui::Accelerator* accelerator) OVERRIDE {
+ void MenuWillShow(ui::SimpleMenuModel* source) override {}
+ void MenuClosed(ui::SimpleMenuModel* source) override {}
+ bool GetAcceleratorForCommandId(int command_id,
+ ui::Accelerator* accelerator) override {
return false;
}
// RenderViewContextMenuProxy implementation.
- virtual void AddMenuItem(int command_id,
- const base::string16& title) OVERRIDE {}
- virtual void AddCheckItem(int command_id,
- const base::string16& title) OVERRIDE {}
- virtual void AddSeparator() OVERRIDE {}
- virtual void AddSubMenu(int command_id,
- const base::string16& label,
- ui::MenuModel* model) OVERRIDE {}
- virtual void UpdateMenuItem(int command_id,
- bool enabled,
- bool hidden,
- const base::string16& title) OVERRIDE {}
- virtual RenderViewHost* GetRenderViewHost() const OVERRIDE {
- return NULL;
- }
- virtual content::BrowserContext* GetBrowserContext() const OVERRIDE {
+ void AddMenuItem(int command_id, const base::string16& title) override {}
+ void AddCheckItem(int command_id, const base::string16& title) override {}
+ void AddSeparator() override {}
+ void AddSubMenu(int command_id,
+ const base::string16& label,
+ ui::MenuModel* model) override {}
+ void UpdateMenuItem(int command_id,
+ bool enabled,
+ bool hidden,
+ const base::string16& title) override {}
+ RenderViewHost* GetRenderViewHost() const override { return NULL; }
+ content::BrowserContext* GetBrowserContext() const override {
return profile_.get();
}
- virtual content::WebContents* GetWebContents() const OVERRIDE {
- return NULL;
- }
+ content::WebContents* GetWebContents() const override { return NULL; }
// Attaches a RenderViewContextMenuObserver to be tested.
void SetObserver(RenderViewContextMenuObserver* observer) {
class SpellCheckerSubMenuObserverTest : public InProcessBrowserTest {
public:
SpellCheckerSubMenuObserverTest() {}
- virtual ~SpellCheckerSubMenuObserverTest() {}
+ ~SpellCheckerSubMenuObserverTest() override {}
private:
DISALLOW_COPY_AND_ASSIGN(SpellCheckerSubMenuObserverTest);