diff options
author | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-25 20:54:06 +0000 |
---|---|---|
committer | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-25 20:54:06 +0000 |
commit | 3c64537927e5a31388c8fac8e04e575a12f6ff81 (patch) | |
tree | adc23145813263daad9d696f2ffb3648dafa8bd5 /chrome/browser/fullscreen.h | |
parent | 34ce848a57340642bb708d44bf1e6fa4ea3a07b5 (diff) | |
download | chromium_src-3c64537927e5a31388c8fac8e04e575a12f6ff81.zip chromium_src-3c64537927e5a31388c8fac8e04e575a12f6ff81.tar.gz chromium_src-3c64537927e5a31388c8fac8e04e575a12f6ff81.tar.bz2 |
Do not show notifications when in fullscreen or screensaver mode.
I add full-screen/presentation mode detection for all 3 platforms. I also
add screensaver detection for MacOSX and Linux since it is missing in these
2 platforms.
BUG=25061
TEST=Manual test
Review URL: http://codereview.chromium.org/6359008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72539 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/fullscreen.h')
-rw-r--r-- | chrome/browser/fullscreen.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chrome/browser/fullscreen.h b/chrome/browser/fullscreen.h new file mode 100644 index 0000000..3ed7ecc --- /dev/null +++ b/chrome/browser/fullscreen.h @@ -0,0 +1,20 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_FULLSCREEN_H_ +#define CHROME_BROWSER_FULLSCREEN_H_ +#pragma once + +#include "build/build_config.h" + +// For MacOSX, InitFullScreenMonitor needs to be called first to setup the +// monitor. StopFullScreenMonitor should be called if it is not needed any more. +#if defined(OS_MACOSX) +void InitFullScreenMonitor(); +void StopFullScreenMonitor(); +#endif + +bool IsFullScreenMode(); + +#endif // CHROME_BROWSER_FULLSCREEN_H_ |