linux: Cache families from FontRenderParams queries.
[chromium-blink-merge.git] / athena / content / render_view_context_menu_impl.h
blob67585521c129d5d803a06a1644e882f8572fe72a
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
3 // found in the LICENSE file.
5 #ifndef ATHENA_CONTENT_RENDER_VIEW_CONTEXT_MENU_IMPL_H_
6 #define ATHENA_CONTENT_RENDER_VIEW_CONTEXT_MENU_IMPL_H_
8 #include "components/renderer_context_menu/render_view_context_menu_base.h"
10 namespace views {
11 class Widget;
14 namespace gfx {
15 class Point;
18 namespace athena {
20 class RenderViewContextMenuImpl : public RenderViewContextMenuBase {
21 public:
22 RenderViewContextMenuImpl(content::RenderFrameHost* render_frame_host,
23 const content::ContextMenuParams& params);
24 virtual ~RenderViewContextMenuImpl();
26 void RunMenuAt(views::Widget* parent,
27 const gfx::Point& point,
28 ui::MenuSourceType type);
30 private:
31 // RenderViewContextMenuBase:
32 virtual void InitMenu() override;
33 virtual void RecordShownItem(int id) override;
34 virtual void RecordUsedItem(int id) override;
35 #if defined(ENABLE_PLUGINS)
36 virtual void HandleAuthorizeAllPlugins() override;
37 #endif
38 virtual void NotifyMenuShown() override;
39 virtual void NotifyURLOpened(const GURL& url,
40 content::WebContents* new_contents) override;
42 // ui::SimpleMenuModel:
43 virtual bool GetAcceleratorForCommandId(
44 int command_id,
45 ui::Accelerator* accelerator) override;
46 virtual bool IsCommandIdChecked(int command_id) const override;
47 virtual bool IsCommandIdEnabled(int command_id) const override;
48 virtual void ExecuteCommand(int command_id, int event_flags) override;
50 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuImpl);
53 } // namespace athena
55 #endif // ATHENA_CONTENT_RENDER_VIEW_CONTEXT_MENU_IMPL_H_