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

Unified Diff: media/video/capture/screen/mac/desktop_configuration.h

Issue 15692018: Remove screen capturers from media/video/capture/screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: media/video/capture/screen/mac/desktop_configuration.h
diff --git a/media/video/capture/screen/mac/desktop_configuration.h b/media/video/capture/screen/mac/desktop_configuration.h
deleted file mode 100644
index dfa563f4dc3bed33f98735fbc31c719a55b67714..0000000000000000000000000000000000000000
--- a/media/video/capture/screen/mac/desktop_configuration.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MEDIA_VIDEO_CAPTURE_SCREEN_MAC_DESKTOP_CONFIGURATION_H_
-#define MEDIA_VIDEO_CAPTURE_SCREEN_MAC_DESKTOP_CONFIGURATION_H_
-
-#include <ApplicationServices/ApplicationServices.h>
-#include <Carbon/Carbon.h>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "media/base/media_export.h"
-#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
-
-namespace media {
-
-// Describes the configuration of a specific display.
-struct MEDIA_EXPORT MacDisplayConfiguration {
- MacDisplayConfiguration();
-
- // Cocoa identifier for this display.
- CGDirectDisplayID id;
-
- // Bounds of this display in Density-Independent Pixels (DIPs).
- webrtc::DesktopRect bounds;
-
- // Bounds of this display in physical pixels.
- webrtc::DesktopRect pixel_bounds;
-
- // Scale factor from DIPs to physical pixels.
- float dip_to_pixel_scale;
-};
-
-typedef std::vector<MacDisplayConfiguration> MacDisplayConfigurations;
-
-// Describes the configuration of the whole desktop.
-struct MEDIA_EXPORT MacDesktopConfiguration {
- // Used to request bottom-up or top-down coordinates.
- enum Origin { BottomLeftOrigin, TopLeftOrigin };
-
- MacDesktopConfiguration();
- ~MacDesktopConfiguration();
-
- // Returns the desktop & display configurations in Cocoa-style "bottom-up"
- // (the origin is the bottom-left of the primary monitor, and coordinates
- // increase as you move up the screen) or Carbon-style "top-down" coordinates.
- MEDIA_EXPORT static MacDesktopConfiguration GetCurrent(Origin origin);
-
- // Bounds of the desktop in Density-Independent Pixels (DIPs).
- webrtc::DesktopRect bounds;
-
- // Bounds of the desktop in physical pixels.
- webrtc::DesktopRect pixel_bounds;
-
- // Scale factor from DIPs to physical pixels.
- float dip_to_pixel_scale;
-
- // Configurations of the displays making up the desktop area.
- MacDisplayConfigurations displays;
-};
-
-} // namespace media
-
-#endif // MEDIA_VIDEO_CAPTURE_SCREEN_MAC_DESKTOP_CONFIGURATION_H_
« no previous file with comments | « media/video/capture/screen/differ_unittest.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