OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 REMOTING_CAPTURER_WIN_DESKTOP_H_ | 5 #ifndef MEDIA_VIDEO_CAPTURE_SCREEN_WIN_DESKTOP_H_ |
6 #define REMOTING_CAPTURER_WIN_DESKTOP_H_ | 6 #define MEDIA_VIDEO_CAPTURE_SCREEN_WIN_DESKTOP_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "media/base/media_export.h" |
13 | 14 |
14 namespace remoting { | 15 namespace media { |
15 | 16 |
16 class Desktop { | 17 class MEDIA_EXPORT Desktop { |
17 public: | 18 public: |
18 ~Desktop(); | 19 ~Desktop(); |
19 | 20 |
20 // Returns the name of the desktop represented by the object. Return false if | 21 // Returns the name of the desktop represented by the object. Return false if |
21 // quering the name failed for any reason. | 22 // quering the name failed for any reason. |
22 bool GetName(string16* desktop_name_out) const; | 23 bool GetName(string16* desktop_name_out) const; |
23 | 24 |
24 // Returns true if |other| has the same name as this desktop. Returns false | 25 // Returns true if |other| has the same name as this desktop. Returns false |
25 // in any other case including failing Win32 APIs and uninitialized desktop | 26 // in any other case including failing Win32 APIs and uninitialized desktop |
26 // handles. | 27 // handles. |
(...skipping 19 matching lines...) Expand all Loading... |
46 | 47 |
47 // The desktop handle. | 48 // The desktop handle. |
48 HDESK desktop_; | 49 HDESK desktop_; |
49 | 50 |
50 // True if |desktop_| must be closed on teardown. | 51 // True if |desktop_| must be closed on teardown. |
51 bool own_; | 52 bool own_; |
52 | 53 |
53 DISALLOW_COPY_AND_ASSIGN(Desktop); | 54 DISALLOW_COPY_AND_ASSIGN(Desktop); |
54 }; | 55 }; |
55 | 56 |
56 } // namespace remoting | 57 } // namespace media |
57 | 58 |
58 #endif // REMOTING_CAPTURER_WIN_DESKTOP_H_ | 59 #endif // MEDIA_VIDEO_CAPTURE_SCREEN_WIN_DESKTOP_H_ |
OLD | NEW |