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

Side by Side Diff: apps/app_window_registry_util.h

Issue 586613002: Remove AppsClient::GetLoadedBrowserContexts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef APPS_APP_WINDOW_REGISTRY_UTIL_H_
6 #define APPS_APP_WINDOW_REGISTRY_UTIL_H_
7
8 #include "ui/gfx/native_widget_types.h"
9
10 namespace extensions {
11 class AppWindow;
12 }
13
14 namespace apps {
15
16 class AppWindowRegistryUtil {
17 public:
18 // Returns the app window for |window|, looking in all browser contexts.
19 static extensions::AppWindow* GetAppWindowForNativeWindowAnyProfile(
20 gfx::NativeWindow window);
21
22 // Returns true if the number of app windows registered across all browser
23 // contexts is non-zero. |window_type_mask| is a bitwise OR filter of
24 // AppWindow::WindowType, or 0 for any window type.
25 static bool IsAppWindowRegisteredInAnyProfile(int window_type_mask);
26
27 // Close all app windows in all profiles.
28 static void CloseAllAppWindows();
29 };
30
31 } // namespace apps
32
33 #endif // APPS_APP_WINDOW_REGISTRY_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698