| 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_
|
|
|