| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef PEERCONNECTION_SAMPLES_CLIENT_MAIN_WND_H_ | 11 #ifndef WEBRTC_EXAMPLES_PEERCONNECTION_CLIENT_MAIN_WND_H_ |
| 12 #define PEERCONNECTION_SAMPLES_CLIENT_MAIN_WND_H_ | 12 #define WEBRTC_EXAMPLES_PEERCONNECTION_CLIENT_MAIN_WND_H_ |
| 13 #pragma once | 13 #pragma once |
| 14 | 14 |
| 15 #include <map> | 15 #include <map> |
| 16 #include <string> | 16 #include <string> |
| 17 | 17 |
| 18 #include "talk/app/webrtc/mediastreaminterface.h" | 18 #include "talk/app/webrtc/mediastreaminterface.h" |
| 19 #include "webrtc/examples/peerconnection/client/peer_connection_client.h" | 19 #include "webrtc/examples/peerconnection/client/peer_connection_client.h" |
| 20 #include "talk/media/base/mediachannel.h" | 20 #include "talk/media/base/mediachannel.h" |
| 21 #include "talk/media/base/videocommon.h" | 21 #include "talk/media/base/videocommon.h" |
| 22 #include "talk/media/base/videoframe.h" | 22 #include "talk/media/base/videoframe.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 53 bool is_error) = 0; | 53 bool is_error) = 0; |
| 54 | 54 |
| 55 virtual UI current_ui() = 0; | 55 virtual UI current_ui() = 0; |
| 56 | 56 |
| 57 virtual void SwitchToConnectUI() = 0; | 57 virtual void SwitchToConnectUI() = 0; |
| 58 virtual void SwitchToPeerList(const Peers& peers) = 0; | 58 virtual void SwitchToPeerList(const Peers& peers) = 0; |
| 59 virtual void SwitchToStreamingUI() = 0; | 59 virtual void SwitchToStreamingUI() = 0; |
| 60 | 60 |
| 61 virtual void StartLocalRenderer(webrtc::VideoTrackInterface* local_video) = 0; | 61 virtual void StartLocalRenderer(webrtc::VideoTrackInterface* local_video) = 0; |
| 62 virtual void StopLocalRenderer() = 0; | 62 virtual void StopLocalRenderer() = 0; |
| 63 virtual void StartRemoteRenderer(webrtc::VideoTrackInterface* remote_video) =
0; | 63 virtual void StartRemoteRenderer( |
| 64 webrtc::VideoTrackInterface* remote_video) = 0; |
| 64 virtual void StopRemoteRenderer() = 0; | 65 virtual void StopRemoteRenderer() = 0; |
| 65 | 66 |
| 66 virtual void QueueUIThreadCallback(int msg_id, void* data) = 0; | 67 virtual void QueueUIThreadCallback(int msg_id, void* data) = 0; |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 #ifdef WIN32 | 70 #ifdef WIN32 |
| 70 | 71 |
| 71 class MainWnd : public MainWindow { | 72 class MainWnd : public MainWindow { |
| 72 public: | 73 public: |
| 73 static const wchar_t kClassName[]; | 74 static const wchar_t kClassName[]; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 void* nested_msg_; | 191 void* nested_msg_; |
| 191 MainWndCallback* callback_; | 192 MainWndCallback* callback_; |
| 192 static ATOM wnd_class_; | 193 static ATOM wnd_class_; |
| 193 std::string server_; | 194 std::string server_; |
| 194 std::string port_; | 195 std::string port_; |
| 195 bool auto_connect_; | 196 bool auto_connect_; |
| 196 bool auto_call_; | 197 bool auto_call_; |
| 197 }; | 198 }; |
| 198 #endif // WIN32 | 199 #endif // WIN32 |
| 199 | 200 |
| 200 #endif // PEERCONNECTION_SAMPLES_CLIENT_MAIN_WND_H_ | 201 #endif // WEBRTC_EXAMPLES_PEERCONNECTION_CLIENT_MAIN_WND_H_ |
| OLD | NEW |