| OLD | NEW |
| (Empty) | |
| 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. |
| 4 |
| 5 #ifndef REMOTING_IOS_UTILITY_H_ |
| 6 #define REMOTING_IOS_UTILITY_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
| 12 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
| 13 |
| 14 #import "remoting/ios/bridge/client_controller.h" |
| 15 |
| 16 typedef struct { |
| 17 CGPoint geometryVertex; |
| 18 CGPoint textureVertex; |
| 19 } TexturedVertex; |
| 20 |
| 21 typedef struct { |
| 22 TexturedVertex bl; |
| 23 TexturedVertex br; |
| 24 TexturedVertex tl; |
| 25 TexturedVertex tr; |
| 26 } TexturedQuad; |
| 27 |
| 28 typedef struct { |
| 29 scoped_ptr<webrtc::BasicDesktopFrame> image; |
| 30 scoped_ptr<webrtc::DesktopVector> offset; |
| 31 } GLRegion; |
| 32 |
| 33 @interface Utility : NSObject |
| 34 |
| 35 + (void)showAlert:(NSString*)title message:(NSString*)message; |
| 36 |
| 37 + (BOOL)isInLandscapeMode; |
| 38 |
| 39 + (NSString*)appVersionNumberDisplayString; |
| 40 |
| 41 + (CGRect)statusBarFrameViewRect:(UIView*)view; |
| 42 |
| 43 + (void)moveMouse:(ClientController*)controller |
| 44 at:(const webrtc::DesktopVector&)point; |
| 45 |
| 46 + (void)leftClickOn:(ClientController*)controller |
| 47 at:(const webrtc::DesktopVector&)point; |
| 48 |
| 49 + (void)middleClickOn:(ClientController*)controller |
| 50 at:(const webrtc::DesktopVector&)point; |
| 51 |
| 52 + (void)rightClickOn:(ClientController*)controller |
| 53 at:(const webrtc::DesktopVector&)point; |
| 54 |
| 55 + (void)mouseScroll:(ClientController*)controller |
| 56 at:(const webrtc::DesktopVector&)point |
| 57 delta:(const webrtc::DesktopVector&)delta; |
| 58 |
| 59 @end |
| 60 |
| 61 #endif // REMOTING_IOS_UTILITY_H_ |
| OLD | NEW |