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

Side by Side Diff: extensions/shell/browser/shell_app_window_controller.h

Issue 493453004: app_shell: Add audio and video capture support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (video-capture) rebase Created 6 years, 3 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
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_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_
7 7
8 namespace content { 8 namespace content {
9 class BrowserContext; 9 class BrowserContext;
10 } 10 }
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 class Extension;
14 class ShellAppWindow; 15 class ShellAppWindow;
15 16
16 class ShellAppWindowController { 17 class ShellAppWindowController {
17 public: 18 public:
18 virtual ~ShellAppWindowController() {} 19 virtual ~ShellAppWindowController() {}
19 20
20 // Creates a new app window and adds it to the desktop. This class should 21 // Creates a new app window and adds it to the desktop. This class should
21 // maintain the ownership of the window. 22 // maintain the ownership of the window.
22 virtual ShellAppWindow* CreateAppWindow(content::BrowserContext* context) = 0; 23 virtual ShellAppWindow* CreateAppWindow(content::BrowserContext* context,
24 const Extension* extension) = 0;
23 25
24 // Closes and destroys the app windows. 26 // Closes and destroys the app windows. Must be called before the extension
27 // is destroyed.
25 virtual void CloseAppWindows() = 0; 28 virtual void CloseAppWindows() = 0;
26 }; 29 };
27 30
28 } // namespace extensions 31 } // namespace extensions
29 32
30 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_ 33 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_app_window.cc ('k') | extensions/shell/browser/shell_desktop_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698