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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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 #include "content/public/common/context_menu_params.h"
9
10 namespace content {
11 class BrowserContext;
12 class WebContents;
13 }
14
15 namespace extensions {
16 class Extension;
17
18 class AppViewGuestDelegate {
19 public:
20 AppViewGuestDelegate();
21 virtual ~AppViewGuestDelegate();
22
23 // Shows the context menu for the guest
24 virtual bool HandleContextMenu(content::WebContents* web_contents,
Xi Han 2014/08/18 21:29:11 Please rename to OnHandleContextMenu(). Thanks.
25 const content::ContextMenuParams& params);
26
27 // Gets the Extension that matches the id
28 virtual const Extension* GetExtensionById(content::BrowserContext* context,
Xi Han 2014/08/18 21:29:11 Please remove this function.
29 const std::string& id,
30 bool include_disabled) const;
31
32 private:
33 DISALLOW_COPY_AND_ASSIGN(AppViewGuestDelegate);
34 };
35
36 } // namespace extensions
37
38 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698