| Index: remoting/ios/utility.h
|
| diff --git a/remoting/ios/utility.h b/remoting/ios/utility.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5c34c921eb5c4bd3ccfbb50843c4cfc9f07f0e2f
|
| --- /dev/null
|
| +++ b/remoting/ios/utility.h
|
| @@ -0,0 +1,61 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef REMOTING_IOS_UTILITY_H_
|
| +#define REMOTING_IOS_UTILITY_H_
|
| +
|
| +#import <Foundation/Foundation.h>
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
|
| +#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
|
| +
|
| +#import "remoting/ios/bridge/client_controller.h"
|
| +
|
| +typedef struct {
|
| + CGPoint geometryVertex;
|
| + CGPoint textureVertex;
|
| +} TexturedVertex;
|
| +
|
| +typedef struct {
|
| + TexturedVertex bl;
|
| + TexturedVertex br;
|
| + TexturedVertex tl;
|
| + TexturedVertex tr;
|
| +} TexturedQuad;
|
| +
|
| +typedef struct {
|
| + scoped_ptr<webrtc::BasicDesktopFrame> image;
|
| + scoped_ptr<webrtc::DesktopVector> offset;
|
| +} GLRegion;
|
| +
|
| +@interface Utility : NSObject
|
| +
|
| ++ (void)showAlert:(NSString*)title message:(NSString*)message;
|
| +
|
| ++ (BOOL)isInLandscapeMode;
|
| +
|
| ++ (NSString*)appVersionNumberDisplayString;
|
| +
|
| ++ (CGRect)statusBarFrameViewRect:(UIView*)view;
|
| +
|
| ++ (void)moveMouse:(ClientController*)controller
|
| + at:(const webrtc::DesktopVector&)point;
|
| +
|
| ++ (void)leftClickOn:(ClientController*)controller
|
| + at:(const webrtc::DesktopVector&)point;
|
| +
|
| ++ (void)middleClickOn:(ClientController*)controller
|
| + at:(const webrtc::DesktopVector&)point;
|
| +
|
| ++ (void)rightClickOn:(ClientController*)controller
|
| + at:(const webrtc::DesktopVector&)point;
|
| +
|
| ++ (void)mouseScroll:(ClientController*)controller
|
| + at:(const webrtc::DesktopVector&)point
|
| + delta:(const webrtc::DesktopVector&)delta;
|
| +
|
| +@end
|
| +
|
| +#endif // REMOTING_IOS_UTILITY_H_
|
|
|