OLD | NEW |
(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_ |
OLD | NEW |