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

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

Issue 642383003: Add the ability to load multiple apps into app_shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 Window;
10 class WindowTreeHost; 10 class WindowTreeHost;
(...skipping 28 matching lines...) Expand all
39 39
40 // Creates a new app window and adds it to the desktop. The desktop maintains 40 // Creates a new app window and adds it to the desktop. The desktop maintains
41 // ownership of the window. The window must be closed before |extension| is 41 // ownership of the window. The window must be closed before |extension| is
42 // destroyed. 42 // destroyed.
43 virtual AppWindow* CreateAppWindow(content::BrowserContext* context, 43 virtual AppWindow* CreateAppWindow(content::BrowserContext* context,
44 const Extension* extension) = 0; 44 const Extension* extension) = 0;
45 45
46 // Attaches the window to our window hierarchy. 46 // Attaches the window to our window hierarchy.
47 virtual void AddAppWindow(aura::Window* window) = 0; 47 virtual void AddAppWindow(aura::Window* window) = 0;
48 48
49 // Removes the window from the desktop.
50 virtual void RemoveAppWindow(AppWindow* window) = 0;
51
49 // Closes and destroys the app windows. 52 // Closes and destroys the app windows.
50 virtual void CloseAppWindows() = 0; 53 virtual void CloseAppWindows() = 0;
51 }; 54 };
52 55
53 } // namespace extensions 56 } // namespace extensions
54 57
55 #endif // EXTENSIONS_SHELL_BROWSER_DESKTOP_CONTROLLER_H_ 58 #endif // EXTENSIONS_SHELL_BROWSER_DESKTOP_CONTROLLER_H_
OLDNEW
« no previous file with comments | « extensions/shell/browser/default_shell_browser_main_delegate.cc ('k') | extensions/shell/browser/shell_desktop_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698