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

Unified Diff: chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc

Issue 486903002: Moving app_view to extensions. (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
« no previous file with comments | « chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc
diff --git a/chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc b/chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c93001331dbc58c06b419d10e94d2c75dca533c6
--- /dev/null
+++ b/chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc
@@ -0,0 +1,30 @@
+// 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.
+
+#include "chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.h"
+#include "chrome/browser/renderer_context_menu/render_view_context_menu.h"
+#include "components/renderer_context_menu/context_menu_delegate.h"
+
+namespace extensions {
+
+ChromeAppViewGuestDelegate::ChromeAppViewGuestDelegate() {
+}
+
+ChromeAppViewGuestDelegate::~ChromeAppViewGuestDelegate() {
+}
+
+bool ChromeAppViewGuestDelegate::HandleContextMenu(
+ content::WebContents* web_contents,
+ const content::ContextMenuParams& params) {
+ ContextMenuDelegate* menu_delegate =
+ ContextMenuDelegate::FromWebContents(web_contents);
+ DCHECK(menu_delegate);
+
+ scoped_ptr<RenderViewContextMenu> menu =
+ menu_delegate->BuildMenu(web_contents, params);
+ menu_delegate->ShowMenu(menu.Pass());
+ return true;
+}
+
+} // namespace extensions
« no previous file with comments | « chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698