| OLD | NEW | 
|---|
|  | (Empty) | 
| 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. |  | 
| 4 |  | 
| 5 #ifndef CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_LINUX_H_ |  | 
| 6 #define CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_LINUX_H_ |  | 
| 7 #pragma once |  | 
| 8 |  | 
| 9 #include "ui/base/x/x11_util.h" |  | 
| 10 |  | 
| 11 #include "base/basictypes.h" |  | 
| 12 |  | 
| 13 class ScreensaverWindowFinder : public ui::EnumerateWindowsDelegate { |  | 
| 14  public: |  | 
| 15   static bool ScreensaverWindowExists(); |  | 
| 16 |  | 
| 17  protected: |  | 
| 18   virtual bool ShouldStopIterating(XID window); |  | 
| 19 |  | 
| 20  private: |  | 
| 21   ScreensaverWindowFinder(); |  | 
| 22 |  | 
| 23   bool IsScreensaverWindow(XID window) const; |  | 
| 24 |  | 
| 25   bool exists_; |  | 
| 26 |  | 
| 27   DISALLOW_COPY_AND_ASSIGN(ScreensaverWindowFinder); |  | 
| 28 }; |  | 
| 29 |  | 
| 30 |  | 
| 31 #endif  // CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_LINUX_H_ |  | 
| OLD | NEW | 
|---|