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

Side by Side Diff: extensions/browser/guest_view/app_view/app_view_guest_delegate.h

Issue 820583002: Adds support for media permission request handling on <appview> tag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn build Created 5 years, 12 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 unified diff | Download patch
« no previous file with comments | « extensions/browser/guest_view/app_view/app_view_guest.cc ('k') | extensions/shell/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_
7 7
8 namespace content { 8 namespace content {
9 struct ContextMenuParams; 9 struct ContextMenuParams;
10 class WebContents; 10 class WebContents;
11 } 11 }
12 12
13 namespace extensions { 13 namespace extensions {
14 class AppDelegate;
15
14 // Interface to handle communication between AppView (in extensions) with the 16 // Interface to handle communication between AppView (in extensions) with the
15 // browser. 17 // browser.
16 class AppViewGuestDelegate { 18 class AppViewGuestDelegate {
17 public: 19 public:
18 virtual ~AppViewGuestDelegate(); 20 virtual ~AppViewGuestDelegate();
19 21
20 // Shows the context menu for the guest. 22 // Shows the context menu for the guest.
21 // Returns true if the context menu was handled. 23 // Returns true if the context menu was handled.
22 virtual bool HandleContextMenu(content::WebContents* web_contents, 24 virtual bool HandleContextMenu(content::WebContents* web_contents,
23 const content::ContextMenuParams& params) = 0; 25 const content::ContextMenuParams& params) = 0;
26
27 // Returns an AppDelegate to be used by the AppViewGuest.
28 virtual AppDelegate* CreateAppDelegate() = 0;
24 }; 29 };
25 30
26 } // namespace extensions 31 } // namespace extensions
27 32
28 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_ 33 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/app_view/app_view_guest.cc ('k') | extensions/shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698