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

Unified Diff: extensions/browser/guest_view/app_view/app_view_guest_delegate.h

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
Index: extensions/browser/guest_view/app_view/app_view_guest_delegate.h
diff --git a/extensions/browser/guest_view/app_view/app_view_guest_delegate.h b/extensions/browser/guest_view/app_view/app_view_guest_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..ac1d433fbbfda557e51731a5a8a80eb8f5260a86
--- /dev/null
+++ b/extensions/browser/guest_view/app_view/app_view_guest_delegate.h
@@ -0,0 +1,32 @@
+// 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 EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_
+#define EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_
+
+#include "content/public/common/context_menu_params.h"
Fady Samuel 2014/08/20 14:33:25 Is this necessary? We are passing ContextMenuParam
+
+namespace content {
+class BrowserContext;
Fady Samuel 2014/08/20 14:33:25 Is this forward declaration necessary?
+class WebContents;
+}
+
+namespace extensions {
+class Extension;
Fady Samuel 2014/08/20 14:33:25 Is this forward declaration necessary?
+
+// Interface to handle communication between AppView (in extensions) with the
+// browser.
+class AppViewGuestDelegate {
+ public:
+ virtual ~AppViewGuestDelegate();
+
+ // Shows the context menu for the guest.
+ // Returns true if the context menu was handled.
+ virtual bool HandleContextMenu(content::WebContents* web_contents,
+ const content::ContextMenuParams& params) = 0;
+};
+
+} // namespace extensions
+
+#endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698