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

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

Issue 547593002: Add ShellAppsClient, ShellAppDelegate, ShellNativeAppWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@apifeatures
Patch Set: Address comments 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
« no previous file with comments | « extensions/shell/app_shell.gyp ('k') | extensions/shell/browser/shell_app_delegate.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 EXTENSIONS_SHELL_BROWSER_DESKTOP_CONTROLLER_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_DESKTOP_CONTROLLER_H_
6 #define EXTENSIONS_SHELL_BROWSER_DESKTOP_CONTROLLER_H_ 6 #define EXTENSIONS_SHELL_BROWSER_DESKTOP_CONTROLLER_H_
7 7
8 namespace aura { 8 namespace aura {
9 class Window;
9 class WindowTreeHost; 10 class WindowTreeHost;
10 } 11 }
11 12
12 namespace content { 13 namespace content {
13 class BrowserContext; 14 class BrowserContext;
14 } 15 }
15 16
16 namespace extensions { 17 namespace extensions {
17 class Extension; 18 class Extension;
18 class ShellAppWindow; 19 class ShellAppWindow;
(...skipping 14 matching lines...) Expand all
33 34
34 // Returns the WindowTreeHost created by this DesktopController. 35 // Returns the WindowTreeHost created by this DesktopController.
35 virtual aura::WindowTreeHost* GetHost() = 0; 36 virtual aura::WindowTreeHost* GetHost() = 0;
36 37
37 // Creates a new app window and adds it to the desktop. The desktop maintains 38 // Creates a new app window and adds it to the desktop. The desktop maintains
38 // ownership of the window. The window must be closed before |extension| is 39 // ownership of the window. The window must be closed before |extension| is
39 // destroyed. 40 // destroyed.
40 virtual ShellAppWindow* CreateAppWindow(content::BrowserContext* context, 41 virtual ShellAppWindow* CreateAppWindow(content::BrowserContext* context,
41 const Extension* extension) = 0; 42 const Extension* extension) = 0;
42 43
44 // Attaches the window to our window hierarchy.
45 virtual void AddAppWindow(aura::Window* window) = 0;
oshima 2014/09/05 18:06:08 What I had in my mind was that CreateAppWindow wil
46
43 // Closes and destroys the app windows. 47 // Closes and destroys the app windows.
44 virtual void CloseAppWindows() = 0; 48 virtual void CloseAppWindows() = 0;
45 }; 49 };
46 50
47 } // namespace extensinos 51 } // namespace extensinos
48 52
49 #endif // EXTENSIONS_SHELL_BROWSER_DESKTOP_CONTROLLER_H_ 53 #endif // EXTENSIONS_SHELL_BROWSER_DESKTOP_CONTROLLER_H_
OLDNEW
« no previous file with comments | « extensions/shell/app_shell.gyp ('k') | extensions/shell/browser/shell_app_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698