Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / screensaver_window_finder_x11.h
blobff22624fd429346d3b7f5b2efab30328de9cba83
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.
5 #ifndef CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_X11_H_
6 #define CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_X11_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/base/x/x11_util.h"
12 class ScreensaverWindowFinder : public ui::EnumerateWindowsDelegate {
13 public:
14 static bool ScreensaverWindowExists();
16 protected:
17 virtual bool ShouldStopIterating(XID window) OVERRIDE;
19 private:
20 ScreensaverWindowFinder();
22 bool IsScreensaverWindow(XID window) const;
24 bool exists_;
26 DISALLOW_COPY_AND_ASSIGN(ScreensaverWindowFinder);
30 #endif // CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_X11_H_