Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Unified Diff: remoting/ios/utility.h

Issue 186733007: iOS Chromoting Client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698