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

Side by Side Diff: content/public/browser/desktop_media_id.h

Issue 615133002: Add support for a virtual display on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix remaining comment periods (thanks achuithb@) Created 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 CONTENT_PUBLIC_BROWSER_DESKTOP_MEDIA_ID_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DESKTOP_MEDIA_ID_H_
6 #define CONTENT_PUBLIC_BROWSER_DESKTOP_MEDIA_ID_H_ 6 #define CONTENT_PUBLIC_BROWSER_DESKTOP_MEDIA_ID_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 14
15 namespace aura { 15 namespace aura {
16 class Window; 16 class Window;
17 } // namespace aura 17 } // namespace aura
18 18
19 namespace content { 19 namespace content {
20 20
21 // Type used to identify desktop media sources. It's converted to string and 21 // Type used to identify desktop media sources. It's converted to string and
22 // stored in MediaStreamRequest::requested_video_device_id . 22 // stored in MediaStreamRequest::requested_video_device_id .
23 struct CONTENT_EXPORT DesktopMediaID { 23 struct CONTENT_EXPORT DesktopMediaID {
24 public: 24 public:
25 enum Type { 25 enum Type {
26 TYPE_NONE, 26 TYPE_NONE,
27 TYPE_SCREEN, 27 TYPE_SCREEN,
28 TYPE_WINDOW, 28 TYPE_WINDOW,
29 TYPE_AURA_WINDOW, 29 TYPE_AURA_WINDOW,
30 TYPE_AURA_VIRTUAL_SCREEN,
30 }; 31 };
31 typedef intptr_t Id; 32 typedef intptr_t Id;
32 33
33 #if defined(USE_AURA) 34 #if defined(USE_AURA)
34 // Assigns integer identifier to the |window| and returns DesktopMediaID of 35 // Assigns integer identifier to the |window| and returns DesktopMediaID of
35 // type TYPE_AURA_WINDOW that corresponds to that |window|. 36 // type TYPE_AURA_WINDOW that corresponds to that |window|.
36 static DesktopMediaID RegisterAuraWindow(aura::Window* window); 37 static DesktopMediaID RegisterAuraWindow(aura::Window* window);
37 38
38 // For DesktopMediaID of type TYPE_AURA_WINDOW returns the |window| that was 39 // For DesktopMediaID of type TYPE_AURA_WINDOW returns the |window| that was
39 // previously registered using RegisterAuraWindow(). 40 // previously registered using RegisterAuraWindow().
(...skipping 23 matching lines...) Expand all
63 64
64 std::string ToString(); 65 std::string ToString();
65 66
66 Type type; 67 Type type;
67 Id id; 68 Id id;
68 }; 69 };
69 70
70 } // namespace content 71 } // namespace content
71 72
72 #endif // CONTENT_PUBLIC_BROWSER_DESKTOP_MEDIA_ID_H_ 73 #endif // CONTENT_PUBLIC_BROWSER_DESKTOP_MEDIA_ID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698