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

Side by Side Diff: media/video/capture/screen/mac/desktop_configuration.h

Issue 12047101: Move screen capturers from remoting/capturer to media/video/capturer/screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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) 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
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_
OLDNEW
« no previous file with comments | « media/video/capture/screen/linux/x_server_pixel_buffer.cc ('k') | media/video/capture/screen/mac/desktop_configuration.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698