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

Unified Diff: athena/content/render_view_context_menu_impl.h

Issue 678653003: Remove Downcasting RVContextMenuBase in ContextMenuDeleagate implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove virtual keyword when override is specified Created 6 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | athena/content/render_view_context_menu_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/content/render_view_context_menu_impl.h
diff --git a/athena/content/render_view_context_menu_impl.h b/athena/content/render_view_context_menu_impl.h
index fa926ae720dca8d0a451c2f9ae31d49e59d9733e..85a9bf1f5639624fa3c441fa286f6765a6addc56 100644
--- a/athena/content/render_view_context_menu_impl.h
+++ b/athena/content/render_view_context_menu_impl.h
@@ -7,14 +7,18 @@
#include "components/renderer_context_menu/render_view_context_menu_base.h"
-namespace views {
-class Widget;
+namespace aura {
+class Window;
}
namespace gfx {
class Point;
}
+namespace views {
+class Widget;
+}
+
namespace athena {
class RenderViewContextMenuImpl : public RenderViewContextMenuBase {
@@ -27,6 +31,9 @@ class RenderViewContextMenuImpl : public RenderViewContextMenuBase {
const gfx::Point& point,
ui::MenuSourceType type);
+ // RenderViewContextMenuBase:
+ void Show() override;
+
private:
// RenderViewContextMenuBase:
void InitMenu() override;
@@ -46,6 +53,9 @@ class RenderViewContextMenuImpl : public RenderViewContextMenuBase {
bool IsCommandIdEnabled(int command_id) const override;
void ExecuteCommand(int command_id, int event_flags) override;
+ aura::Window* GetActiveNativeView();
+ views::Widget* GetTopLevelWidget();
+
DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuImpl);
};
« no previous file with comments | « no previous file | athena/content/render_view_context_menu_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698