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

Unified Diff: athena/content/render_view_context_menu_impl.h

Issue 448063005: Add minimum Conetxt Menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
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
new file mode 100644
index 0000000000000000000000000000000000000000..c12c65f72606bd7f1056fe65b373aae94c7625e2
--- /dev/null
+++ b/athena/content/render_view_context_menu_impl.h
@@ -0,0 +1,55 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ATHENA_CONTENT_RENDER_VIEW_CONTEXT_MENU_IMPL_H_
+#define ATHENA_CONTENT_RENDER_VIEW_CONTEXT_MENU_IMPL_H_
+
+#include "components/renderer_context_menu/render_view_context_menu_base.h"
+
+namespace views {
+class Widget;
+}
+
+namespace gfx {
+class Point;
+}
+
+namespace athena {
+
+class RenderViewContextMenuImpl : public RenderViewContextMenuBase {
+ public:
+ RenderViewContextMenuImpl(content::RenderFrameHost* render_frame_host,
+ const content::ContextMenuParams& params);
+ virtual ~RenderViewContextMenuImpl();
+
+ void RunMenuAt(views::Widget* parent,
+ const gfx::Point& point,
+ ui::MenuSourceType type);
+
+ private:
+ // RenderViewContextMenuBase:
+ virtual void InitMenu() OVERRIDE;
+ virtual void RecordShownItem(int id) OVERRIDE;
+ virtual void RecordUsedItem(int id) OVERRIDE;
+#if defined(ENABLE_PLUGINS)
+ virtual void HandleAuthorizeAllPlugins() OVERRIDE;
+#endif
+ virtual void NotifyMenuShown() OVERRIDE;
+ virtual void NotifyURLOpened(const GURL& url,
+ content::WebContents* new_contents) OVERRIDE;
+
+ // ui::SimpleMenuModel:
+ virtual bool GetAcceleratorForCommandId(
+ int command_id,
+ ui::Accelerator* accelerator) OVERRIDE;
+ virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
+ virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
+ virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuImpl);
+};
+
+} // namespace athena
+
+#endif // ATHENA_CONTENT_RENDER_VIEW_CONTEXT_MENU_IMPL_H_
« no previous file with comments | « athena/content/public/web_contents_view_delegate_creator.h ('k') | athena/content/render_view_context_menu_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698