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

Side by Side Diff: extensions/browser/app_window/app_delegate.h

Issue 486153002: Move AppWindow related classes to extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/app_window/app_web_contents_helper.h » ('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 APPS_APP_DELEGATE_H_ 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_
6 #define APPS_APP_DELEGATE_H_ 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_
7 7
8 #include "content/public/common/media_stream_request.h" 8 #include "content/public/common/media_stream_request.h"
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/base/window_open_disposition.h" 10 #include "ui/base/window_open_disposition.h"
11 #include "ui/gfx/image/image_skia.h" 11 #include "ui/gfx/image/image_skia.h"
12 12
13 namespace content { 13 namespace content {
14 class BrowserContext; 14 class BrowserContext;
15 class ColorChooser; 15 class ColorChooser;
16 struct FileChooserParams; 16 struct FileChooserParams;
17 struct OpenURLParams; 17 struct OpenURLParams;
18 class WebContents; 18 class WebContents;
19 } 19 }
20 20
21 namespace extensions {
22 class Extension;
23 }
24
25 namespace gfx { 21 namespace gfx {
26 class Rect; 22 class Rect;
27 } 23 }
28 24
29 namespace apps { 25 namespace extensions {
26
27 class Extension;
30 28
31 // Interface to give packaged apps access to services in the browser, for things 29 // Interface to give packaged apps access to services in the browser, for things
32 // like handling links and showing UI prompts to the user. 30 // like handling links and showing UI prompts to the user.
33 class AppDelegate { 31 class AppDelegate {
34 public: 32 public:
35 virtual ~AppDelegate() {} 33 virtual ~AppDelegate() {}
36 34
37 // General initialization. 35 // General initialization.
38 virtual void InitWebContents(content::WebContents* web_contents) = 0; 36 virtual void InitWebContents(content::WebContents* web_contents) = 0;
39 37
(...skipping 12 matching lines...) Expand all
52 // Feature support. 50 // Feature support.
53 virtual content::ColorChooser* ShowColorChooser( 51 virtual content::ColorChooser* ShowColorChooser(
54 content::WebContents* web_contents, 52 content::WebContents* web_contents,
55 SkColor initial_color) = 0; 53 SkColor initial_color) = 0;
56 virtual void RunFileChooser(content::WebContents* tab, 54 virtual void RunFileChooser(content::WebContents* tab,
57 const content::FileChooserParams& params) = 0; 55 const content::FileChooserParams& params) = 0;
58 virtual void RequestMediaAccessPermission( 56 virtual void RequestMediaAccessPermission(
59 content::WebContents* web_contents, 57 content::WebContents* web_contents,
60 const content::MediaStreamRequest& request, 58 const content::MediaStreamRequest& request,
61 const content::MediaResponseCallback& callback, 59 const content::MediaResponseCallback& callback,
62 const extensions::Extension* extension) = 0; 60 const Extension* extension) = 0;
63 virtual int PreferredIconSize() = 0; 61 virtual int PreferredIconSize() = 0;
64 virtual gfx::ImageSkia GetAppDefaultIcon() = 0; 62 virtual gfx::ImageSkia GetAppDefaultIcon() = 0;
65 63
66 // Web contents modal dialog support. 64 // Web contents modal dialog support.
67 virtual void SetWebContentsBlocked(content::WebContents* web_contents, 65 virtual void SetWebContentsBlocked(content::WebContents* web_contents,
68 bool blocked) = 0; 66 bool blocked) = 0;
69 virtual bool IsWebContentsVisible(content::WebContents* web_contents) = 0; 67 virtual bool IsWebContentsVisible(content::WebContents* web_contents) = 0;
70 }; 68 };
71 69
72 } // namespace apps 70 } // namespace extensions
73 71
74 #endif // APPS_APP_DELEGATE_H_ 72 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_
OLDNEW
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/app_window/app_web_contents_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698