| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_MAC_DESKTOP_CONFIGURATION_H_ | 5 #ifndef MEDIA_VIDEO_CAPTURE_SCREEN_MAC_DESKTOP_CONFIGURATION_H_ |
| 6 #define REMOTING_CAPTURER_MAC_DESKTOP_CONFIGURATION_H_ | 6 #define MEDIA_VIDEO_CAPTURE_SCREEN_MAC_DESKTOP_CONFIGURATION_H_ |
| 7 | 7 |
| 8 #include <ApplicationServices/ApplicationServices.h> | 8 #include <ApplicationServices/ApplicationServices.h> |
| 9 #include <Carbon/Carbon.h> | 9 #include <Carbon/Carbon.h> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "third_party/skia/include/core/SkPoint.h" | 13 #include "third_party/skia/include/core/SkPoint.h" |
| 14 #include "third_party/skia/include/core/SkRect.h" | 14 #include "third_party/skia/include/core/SkRect.h" |
| 15 | 15 |
| 16 namespace remoting { | 16 namespace media { |
| 17 | 17 |
| 18 // Describes the configuration of a specific display. | 18 // Describes the configuration of a specific display. |
| 19 struct MacDisplayConfiguration { | 19 struct MacDisplayConfiguration { |
| 20 MacDisplayConfiguration(); | 20 MacDisplayConfiguration(); |
| 21 | 21 |
| 22 // Returns the current configuration of the specified display. | 22 // Returns the current configuration of the specified display. |
| 23 static MacDisplayConfiguration ForDisplay(CGDirectDisplayID display_id); | 23 static MacDisplayConfiguration ForDisplay(CGDirectDisplayID display_id); |
| 24 | 24 |
| 25 // Cocoa identifier for this display. | 25 // Cocoa identifier for this display. |
| 26 CGDirectDisplayID id; | 26 CGDirectDisplayID id; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 51 // Bounds of the desktop in physical pixels. | 51 // Bounds of the desktop in physical pixels. |
| 52 SkIRect pixel_bounds; | 52 SkIRect pixel_bounds; |
| 53 | 53 |
| 54 // Scale factor from DIPs to physical pixels. | 54 // Scale factor from DIPs to physical pixels. |
| 55 float dip_to_pixel_scale; | 55 float dip_to_pixel_scale; |
| 56 | 56 |
| 57 // Configurations of the displays making up the desktop area. | 57 // Configurations of the displays making up the desktop area. |
| 58 MacDisplayConfigurations displays; | 58 MacDisplayConfigurations displays; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace remoting | 61 } // namespace media |
| 62 | 62 |
| 63 #endif // REMOTING_CAPTURER_MAC_DESKTOP_CONFIGURATION_H_ | 63 #endif // MEDIA_VIDEO_CAPTURE_SCREEN_MAC_DESKTOP_CONFIGURATION_H_ |
| OLD | NEW |