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 UI_BASE_IDLE_SCREENSAVER_WINDOW_FINDER_X11_H_
6 #define UI_BASE_IDLE_SCREENSAVER_WINDOW_FINDER_X11_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/base/x/x11_util.h"
14 class ScreensaverWindowFinder
: public ui::EnumerateWindowsDelegate
{
16 static bool ScreensaverWindowExists();
19 bool ShouldStopIterating(XID window
) override
;
22 ScreensaverWindowFinder();
24 bool IsScreensaverWindow(XID window
) const;
28 DISALLOW_COPY_AND_ASSIGN(ScreensaverWindowFinder
);
33 #endif // UI_BASE_IDLE_SCREENSAVER_WINDOW_FINDER_X11_H_