OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_X11_H_ | 5 #ifndef CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_X11_H_ |
6 #define CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_X11_H_ | 6 #define CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_X11_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ui/base/x/x11_util.h" | 10 #include "ui/base/x/x11_util.h" |
11 | 11 |
12 class ScreensaverWindowFinder : public ui::EnumerateWindowsDelegate { | 12 class ScreensaverWindowFinder : public ui::EnumerateWindowsDelegate { |
13 public: | 13 public: |
14 static bool ScreensaverWindowExists(); | 14 static bool ScreensaverWindowExists(); |
15 | 15 |
16 protected: | 16 protected: |
17 virtual bool ShouldStopIterating(XID window) OVERRIDE; | 17 virtual bool ShouldStopIterating(XID window) override; |
18 | 18 |
19 private: | 19 private: |
20 ScreensaverWindowFinder(); | 20 ScreensaverWindowFinder(); |
21 | 21 |
22 bool IsScreensaverWindow(XID window) const; | 22 bool IsScreensaverWindow(XID window) const; |
23 | 23 |
24 bool exists_; | 24 bool exists_; |
25 | 25 |
26 DISALLOW_COPY_AND_ASSIGN(ScreensaverWindowFinder); | 26 DISALLOW_COPY_AND_ASSIGN(ScreensaverWindowFinder); |
27 }; | 27 }; |
28 | 28 |
29 | 29 |
30 #endif // CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_X11_H_ | 30 #endif // CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_X11_H_ |
OLD | NEW |