From 3c64537927e5a31388c8fac8e04e575a12f6ff81 Mon Sep 17 00:00:00 2001 From: "jianli@chromium.org" Date: Tue, 25 Jan 2011 20:54:06 +0000 Subject: 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 --- chrome/browser/fullscreen.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 chrome/browser/fullscreen.h (limited to 'chrome/browser/fullscreen.h') 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_ -- cgit v1.1