Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: chrome/browser/screensaver_window_finder_x11.h

Issue 15926004: linux_aura: Reuse non-GTK specific screensaver detection code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Put exclusion in right gyp file. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_GTK_H_ 5 #ifndef CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_X11_H_
6 #define CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_GTK_H_ 6 #define CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_X11_H_
7
8 #include "ui/base/x/x11_util.h"
9 7
10 #include "base/basictypes.h" 8 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/base/x/x11_util.h"
12 11
13 class ScreensaverWindowFinder : public ui::EnumerateWindowsDelegate { 12 class ScreensaverWindowFinder : public ui::EnumerateWindowsDelegate {
14 public: 13 public:
15 static bool ScreensaverWindowExists(); 14 static bool ScreensaverWindowExists();
16 15
17 protected: 16 protected:
18 virtual bool ShouldStopIterating(XID window) OVERRIDE; 17 virtual bool ShouldStopIterating(XID window) OVERRIDE;
19 18
20 private: 19 private:
21 ScreensaverWindowFinder(); 20 ScreensaverWindowFinder();
22 21
23 bool IsScreensaverWindow(XID window) const; 22 bool IsScreensaverWindow(XID window) const;
24 23
25 bool exists_; 24 bool exists_;
26 25
27 DISALLOW_COPY_AND_ASSIGN(ScreensaverWindowFinder); 26 DISALLOW_COPY_AND_ASSIGN(ScreensaverWindowFinder);
28 }; 27 };
29 28
30 29
31 #endif // CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_GTK_H_ 30 #endif // CHROME_BROWSER_SCREENSAVER_WINDOW_FINDER_X11_H_
OLDNEW
« no previous file with comments | « chrome/browser/screensaver_window_finder_gtk.cc ('k') | chrome/browser/screensaver_window_finder_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698