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

Side by Side Diff: public/platform/WebMediaConstraints.h

Issue 64593002: Move MediaStreamSource to platform/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 WebMediaConstraint() 48 WebMediaConstraint()
49 { 49 {
50 } 50 }
51 51
52 WebMediaConstraint(WebString name, WebString value) 52 WebMediaConstraint(WebString name, WebString value)
53 : m_name(name) 53 : m_name(name)
54 , m_value(value) 54 , m_value(value)
55 { 55 {
56 } 56 }
57 57
58 #if BLINK_IMPLEMENTATION 58 #if INSIDE_BLINK
59 WebMediaConstraint(const WebCore::MediaConstraint&); 59 WebMediaConstraint(const WebCore::MediaConstraint&);
abarth-chromium 2013/11/07 18:23:23 This doesn't need an export?
60 #endif 60 #endif
61 61
62 WebString m_name; 62 WebString m_name;
63 WebString m_value; 63 WebString m_value;
64 }; 64 };
65 65
66 class WebMediaConstraints { 66 class WebMediaConstraints {
67 public: 67 public:
68 WebMediaConstraints() { } 68 WebMediaConstraints() { }
69 WebMediaConstraints(const WebMediaConstraints& other) { assign(other); } 69 WebMediaConstraints(const WebMediaConstraints& other) { assign(other); }
70 ~WebMediaConstraints() { reset(); } 70 ~WebMediaConstraints() { reset(); }
71 71
72 WebMediaConstraints& operator=(const WebMediaConstraints& other) 72 WebMediaConstraints& operator=(const WebMediaConstraints& other)
73 { 73 {
74 assign(other); 74 assign(other);
75 return *this; 75 return *this;
76 } 76 }
77 77
78 BLINK_EXPORT void assign(const WebMediaConstraints&); 78 BLINK_PLATFORM_EXPORT void assign(const WebMediaConstraints&);
79 79
80 BLINK_EXPORT void reset(); 80 BLINK_PLATFORM_EXPORT void reset();
81 bool isNull() const { return m_private.isNull(); } 81 bool isNull() const { return m_private.isNull(); }
82 82
83 BLINK_EXPORT void getMandatoryConstraints(WebVector<WebMediaConstraint>&) co nst; 83 BLINK_PLATFORM_EXPORT void getMandatoryConstraints(WebVector<WebMediaConstra int>&) const;
84 BLINK_EXPORT void getOptionalConstraints(WebVector<WebMediaConstraint>&) con st; 84 BLINK_PLATFORM_EXPORT void getOptionalConstraints(WebVector<WebMediaConstrai nt>&) const;
85 85
86 BLINK_EXPORT bool getMandatoryConstraintValue(const WebString& name, WebStri ng& value) const; 86 BLINK_PLATFORM_EXPORT bool getMandatoryConstraintValue(const WebString& name , WebString& value) const;
87 BLINK_EXPORT bool getOptionalConstraintValue(const WebString& name, WebStrin g& value) const; 87 BLINK_PLATFORM_EXPORT bool getOptionalConstraintValue(const WebString& name, WebString& value) const;
88 88
89 #if BLINK_IMPLEMENTATION 89 #if INSIDE_BLINK
90 WebMediaConstraints(const WTF::PassRefPtr<WebCore::MediaConstraints>&); 90 BLINK_PLATFORM_EXPORT WebMediaConstraints(const WTF::PassRefPtr<WebCore::Med iaConstraints>&);
91 WebMediaConstraints(WebCore::MediaConstraints*); 91 BLINK_PLATFORM_EXPORT WebMediaConstraints(WebCore::MediaConstraints*);
92 #endif 92 #endif
93 93
94 private: 94 private:
95 WebPrivatePtr<WebCore::MediaConstraints> m_private; 95 WebPrivatePtr<WebCore::MediaConstraints> m_private;
96 }; 96 };
97 97
98 } // namespace blink 98 } // namespace blink
99 99
100 #endif // WebMediaConstraints_h 100 #endif // WebMediaConstraints_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698