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 | 13 |
14 namespace remoting { | 14 namespace media { |
15 | 15 |
16 class Desktop { | 16 class Desktop { |
17 public: | 17 public: |
18 ~Desktop(); | 18 ~Desktop(); |
19 | 19 |
20 // Returns the name of the desktop represented by the object. Return false if | 20 // Returns the name of the desktop represented by the object. Return false if |
21 // quering the name failed for any reason. | 21 // quering the name failed for any reason. |
22 bool GetName(string16* desktop_name_out) const; | 22 bool GetName(string16* desktop_name_out) const; |
23 | 23 |
24 // Returns true if |other| has the same name as this desktop. Returns false | 24 // Returns true if |other| has the same name as this desktop. Returns false |
(...skipping 21 matching lines...) Expand all Loading... |
46 | 46 |
47 // The desktop handle. | 47 // The desktop handle. |
48 HDESK desktop_; | 48 HDESK desktop_; |
49 | 49 |
50 // True if |desktop_| must be closed on teardown. | 50 // True if |desktop_| must be closed on teardown. |
51 bool own_; | 51 bool own_; |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(Desktop); | 53 DISALLOW_COPY_AND_ASSIGN(Desktop); |
54 }; | 54 }; |
55 | 55 |
56 } // namespace remoting | 56 } // namespace media |
57 | 57 |
58 #endif // REMOTING_CAPTURER_WIN_DESKTOP_H_ | 58 #endif // MEDIA_VIDEO_CAPTURE_SCREEN_WIN_DESKTOP_H_ |
OLD | NEW |