OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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 CHROME_BROWSER_FULLSCREEN_H_ |
| 6 #define CHROME_BROWSER_FULLSCREEN_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "build/build_config.h" |
| 10 |
| 11 #if defined(OS_LINUX) |
| 12 #include "ui/base/x/x11_util.h" // For definition of XID. |
| 13 #endif |
| 14 |
| 15 // For MacOSX, InitFullScreenMonitor needs to be called first to setup the |
| 16 // monitor. StopFullScreenMonitor should be called if it is not needed any more. |
| 17 #if defined(OS_MACOSX) |
| 18 void InitFullScreenMonitor(); |
| 19 void StopFullScreenMonitor(); |
| 20 #endif |
| 21 |
| 22 // This helper function is needed by screensaver detection on Linux. |
| 23 #if defined(OS_LINUX) |
| 24 bool IsX11WindowFullScreen(XID window); |
| 25 #endif |
| 26 |
| 27 bool IsFullScreenMode(); |
| 28 |
| 29 #endif // CHROME_BROWSER_FULLSCREEN_H_ |
OLD | NEW |