1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef REMOTING_IOS_BRIDGE_HOST_PROXY_DELEGATE_H_
6 #define REMOTING_IOS_BRIDGE_HOST_PROXY_DELEGATE_H_
8 #import <Foundation/Foundation.h>
9 #import <UIKit/UIKit.h>
13 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
15 // Contract to provide for callbacks from the common Chromoting protocol to the
17 @protocol ClientProxyDelegate<NSObject>
19 // HOST request for client to input their PIN.
20 - (void)requestHostPin:(BOOL)pairingSupported;
22 // HOST notification that a connection has been successfully opened.
25 // HOST notification for a change in connections status.
26 - (void)connectionStatus:(NSString*)statusMessage;
28 // HOST notification that a connection has failed.
29 - (void)connectionFailed:(NSString*)errorMessage;
31 // A new Canvas (desktop) update has arrived.
32 - (void)applyFrame:(const webrtc::DesktopSize&)size
33 stride:(NSInteger)stride
35 regions:(const std::vector<webrtc::DesktopRect>&)regions;
37 // A new Cursor (mouse) update has arrived.
38 - (void)applyCursor:(const webrtc::DesktopSize&)size
39 hotspot:(const webrtc::DesktopVector&)hotspot
40 cursorData:(uint8_t*)data;
43 #endif // REMOTING_IOS_BRIDGE_HOST_PROXY_DELEGATE_H_