Update broken references to image assets
[chromium-blink-merge.git] / extensions / browser / guest_view / app_view / app_view_guest_delegate.h
blob01e90dde5f41d097556e2b1b56612c2efbf43683
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 EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_
8 namespace content {
9 struct ContextMenuParams;
10 class WebContents;
13 namespace extensions {
14 class AppDelegate;
16 // Interface to handle communication between AppView (in extensions) with the
17 // browser.
18 class AppViewGuestDelegate {
19 public:
20 virtual ~AppViewGuestDelegate();
22 // Shows the context menu for the guest.
23 // Returns true if the context menu was handled.
24 virtual bool HandleContextMenu(content::WebContents* web_contents,
25 const content::ContextMenuParams& params) = 0;
27 // Returns an AppDelegate to be used by the AppViewGuest.
28 virtual AppDelegate* CreateAppDelegate() = 0;
31 } // namespace extensions
33 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_