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

Unified Diff: chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h

Issue 178193005: Move render_view_context_menu.* related files out of tab_contents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: context_menu->renderer_context_menu for disambiguation Created 6 years, 10 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: chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h
diff --git a/chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h b/chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h
deleted file mode 100644
index dcd5d4765727e5e9bdbb569fd1d3fe43ab1f06f2..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (c) 2012 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 CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H_
-#define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/scoped_vector.h"
-#include "base/strings/string16.h"
-#include "chrome/browser/tab_contents/render_view_context_menu.h"
-#include "ui/base/ui_base_types.h"
-
-namespace gfx {
-class Point;
-}
-
-namespace views {
-class MenuRunner;
-class Widget;
-}
-
-class RenderViewContextMenuViews : public RenderViewContextMenu {
- public:
- virtual ~RenderViewContextMenuViews();
-
- // Factory function to create an instance.
- static RenderViewContextMenuViews* Create(
- content::RenderFrameHost* render_frame_host,
- const content::ContextMenuParams& params);
-
- void RunMenuAt(views::Widget* parent,
- const gfx::Point& point,
- ui::MenuSourceType type);
-
- // RenderViewContextMenuDelegate implementation.
- virtual void UpdateMenuItem(int command_id,
- bool enabled,
- bool hidden,
- const base::string16& title) OVERRIDE;
-
- virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE;
-
- protected:
- RenderViewContextMenuViews(content::RenderFrameHost* render_frame_host,
- const content::ContextMenuParams& params);
-
- // RenderViewContextMenu implementation.
- virtual void PlatformInit() OVERRIDE;
- virtual void PlatformCancel() OVERRIDE;
- virtual bool GetAcceleratorForCommandId(
- int command_id,
- ui::Accelerator* accelerator) OVERRIDE;
-
- private:
- virtual void AppendPlatformEditableItems() OVERRIDE;
- virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
- virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
-
- // Model for the BiDi input submenu.
- ui::SimpleMenuModel bidi_submenu_model_;
-
- scoped_ptr<views::MenuRunner> menu_runner_;
-
- DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuViews);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H_

Powered by Google App Engine
This is Rietveld 408576698