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

Side by Side Diff: chrome/browser/ui/ash/session_util.h

Issue 2055053002: mash: Convert ash::ShellDelegate from aura::Window to WmWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@movetrayupdate
Patch Set: rebase Created 4 years, 6 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 | « chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 CHROME_BROWSER_UI_ASH_SESSION_UTIL_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_SESSION_UTIL_H_
6 #define CHROME_BROWSER_UI_ASH_SESSION_UTIL_H_ 6 #define CHROME_BROWSER_UI_ASH_SESSION_UTIL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "ui/gfx/image/image_skia.h" 9 #include "ui/gfx/image/image_skia.h"
10 10
11 namespace aura { 11 namespace aura {
12 class Window; 12 class Window;
13 } 13 }
14 14
15 namespace content { 15 namespace content {
16 class BrowserContext; 16 class BrowserContext;
17 } 17 }
18 18
19 content::BrowserContext* GetActiveBrowserContext(); 19 content::BrowserContext* GetActiveBrowserContext();
20 20
21 using GetActiveBrowserContextCallback = 21 using GetActiveBrowserContextCallback =
22 base::Callback<content::BrowserContext*(void)>; 22 base::Callback<content::BrowserContext*(void)>;
23 23
24 // See documentation in ash/shell_delegate.h for the method of the same name. 24 // See documentation in ash::ShellDelegate for the method of the same name.
25 // |context| is the content::BrowserContext deemed active for the current 25 // |context| is the content::BrowserContext deemed active for the current
26 // scenario. This is passed in because it can differ in tests vs. production. 26 // scenario. This is passed in because it can differ in tests vs. production.
27 // See for example MultiUserWindowManagerTestChromeOS. 27 // See for example MultiUserWindowManagerTestChromeOS.
28 bool CanShowWindowForUser( 28 bool CanShowWindowForUser(
29 aura::Window* window, 29 aura::Window* window,
30 const GetActiveBrowserContextCallback& get_context_callback); 30 const GetActiveBrowserContextCallback& get_context_callback);
31 31
32 gfx::ImageSkia GetAvatarImageForContext(content::BrowserContext* context); 32 gfx::ImageSkia GetAvatarImageForContext(content::BrowserContext* context);
33 33
34 #endif // CHROME_BROWSER_UI_ASH_SESSION_UTIL_H_ 34 #endif // CHROME_BROWSER_UI_ASH_SESSION_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698