Home | History | Annotate | Download | only in app_view
      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.
      4 
      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_
      7 
      8 namespace content {
      9 struct ContextMenuParams;
     10 class WebContents;
     11 }
     12 
     13 namespace extensions {
     14 // Interface to handle communication between AppView (in extensions) with the
     15 // browser.
     16 class AppViewGuestDelegate {
     17  public:
     18   virtual ~AppViewGuestDelegate();
     19 
     20   // Shows the context menu for the guest.
     21   // Returns true if the context menu was handled.
     22   virtual bool HandleContextMenu(content::WebContents* web_contents,
     23                                  const content::ContextMenuParams& params) = 0;
     24 };
     25 
     26 }  // namespace extensions
     27 
     28 #endif  // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_
     29