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

Side by Side Diff: components/renderer_context_menu/views/toolkit_delegate_views.h

Issue 684513002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_TOOLKIT_DELEGATE_VIEWS_H_ 5 #ifndef COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_TOOLKIT_DELEGATE_VIEWS_H_
6 #define COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_TOOLKIT_DELEGATE_VIEWS_H_ 6 #define COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_TOOLKIT_DELEGATE_VIEWS_H_
7 7
8 #include "components/renderer_context_menu/render_view_context_menu_base.h" 8 #include "components/renderer_context_menu/render_view_context_menu_base.h"
9 #include "ui/base/ui_base_types.h" 9 #include "ui/base/ui_base_types.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class Point; 12 class Point;
13 } 13 }
14 14
15 namespace views { 15 namespace views {
16 class MenuItemView; 16 class MenuItemView;
17 class MenuModelAdapter; 17 class MenuModelAdapter;
18 class MenuRunner; 18 class MenuRunner;
19 class Widget; 19 class Widget;
20 } 20 }
21 21
22 namespace ui { 22 namespace ui {
23 class SimpleMenuModel; 23 class SimpleMenuModel;
24 } 24 }
25 25
26 class ToolkitDelegateViews : public RenderViewContextMenuBase::ToolkitDelegate { 26 class ToolkitDelegateViews : public RenderViewContextMenuBase::ToolkitDelegate {
27 public: 27 public:
28 ToolkitDelegateViews(); 28 ToolkitDelegateViews();
29 virtual ~ToolkitDelegateViews(); 29 ~ToolkitDelegateViews() override;
30 30
31 void RunMenuAt(views::Widget* parent, 31 void RunMenuAt(views::Widget* parent,
32 const gfx::Point& point, 32 const gfx::Point& point,
33 ui::MenuSourceType type); 33 ui::MenuSourceType type);
34 34
35 private: 35 private:
36 // ToolkitDelegate: 36 // ToolkitDelegate:
37 virtual void Init(ui::SimpleMenuModel* menu_model) override; 37 void Init(ui::SimpleMenuModel* menu_model) override;
38 virtual void Cancel() override; 38 void Cancel() override;
39 virtual void UpdateMenuItem(int command_id, 39 void UpdateMenuItem(int command_id,
40 bool enabled, 40 bool enabled,
41 bool hidden, 41 bool hidden,
42 const base::string16& title) override; 42 const base::string16& title) override;
43 43
44 scoped_ptr<views::MenuModelAdapter> menu_adapter_; 44 scoped_ptr<views::MenuModelAdapter> menu_adapter_;
45 scoped_ptr<views::MenuRunner> menu_runner_; 45 scoped_ptr<views::MenuRunner> menu_runner_;
46 46
47 // Weak. Owned by menu_runner_; 47 // Weak. Owned by menu_runner_;
48 views::MenuItemView* menu_view_; 48 views::MenuItemView* menu_view_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(ToolkitDelegateViews); 50 DISALLOW_COPY_AND_ASSIGN(ToolkitDelegateViews);
51 }; 51 };
52 52
53 #endif // COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_TOOLKIT_DELEGATE_VIEWS_H_ 53 #endif // COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_TOOLKIT_DELEGATE_VIEWS_H_
OLDNEW
« no previous file with comments | « components/proximity_auth/cryptauth/cryptauth_api_call_flow_unittest.cc ('k') | components/search/search_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698