| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 | 27 |
| 28 #include "public/platform/WebSourceInfo.h" | 28 #include "public/platform/WebSourceInfo.h" |
| 29 | 29 |
| 30 #include "public/platform/WebString.h" | 30 #include "public/platform/WebString.h" |
| 31 #include "wtf/PassRefPtr.h" | 31 #include "wtf/PassRefPtr.h" |
| 32 #include "wtf/RefCounted.h" | 32 #include "wtf/RefCounted.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 class WebSourceInfoPrivate FINAL : public RefCounted<WebSourceInfoPrivate> { | 36 class WebSourceInfoPrivate final : public RefCounted<WebSourceInfoPrivate> { |
| 37 public: | 37 public: |
| 38 static PassRefPtr<WebSourceInfoPrivate> create(const WebString& id, WebSourc
eInfo::SourceKind, const WebString& label, WebSourceInfo::VideoFacingMode); | 38 static PassRefPtr<WebSourceInfoPrivate> create(const WebString& id, WebSourc
eInfo::SourceKind, const WebString& label, WebSourceInfo::VideoFacingMode); |
| 39 | 39 |
| 40 const WebString& id() const { return m_id; } | 40 const WebString& id() const { return m_id; } |
| 41 WebSourceInfo::SourceKind kind() const { return m_kind; } | 41 WebSourceInfo::SourceKind kind() const { return m_kind; } |
| 42 const WebString& label() const { return m_label; } | 42 const WebString& label() const { return m_label; } |
| 43 WebSourceInfo::VideoFacingMode facing() const { return m_facing; } | 43 WebSourceInfo::VideoFacingMode facing() const { return m_facing; } |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 WebSourceInfoPrivate(const WebString& id, WebSourceInfo::SourceKind, const W
ebString& label, WebSourceInfo::VideoFacingMode); | 46 WebSourceInfoPrivate(const WebString& id, WebSourceInfo::SourceKind, const W
ebString& label, WebSourceInfo::VideoFacingMode); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 } | 98 } |
| 99 | 99 |
| 100 WebSourceInfo::VideoFacingMode WebSourceInfo::facing() const | 100 WebSourceInfo::VideoFacingMode WebSourceInfo::facing() const |
| 101 { | 101 { |
| 102 ASSERT(!m_private.isNull()); | 102 ASSERT(!m_private.isNull()); |
| 103 return m_private->facing(); | 103 return m_private->facing(); |
| 104 } | 104 } |
| 105 | 105 |
| 106 } // namespace blink | 106 } // namespace blink |
| 107 | 107 |
| OLD | NEW |