| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if !defined(__has_feature) || !__has_feature(objc_arc) | 5 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 6 #error "This file requires ARC support." | 6 #error "This file requires ARC support." |
| 7 #endif | 7 #endif |
| 8 | 8 |
| 9 #import "remoting/ios/app/host_view_controller.h" | 9 #import "remoting/ios/app/host_view_controller.h" |
| 10 | 10 |
| 11 #include <memory> | 11 #include <memory> |
| 12 | 12 |
| 13 #import <GLKit/GLKit.h> | 13 #import <GLKit/GLKit.h> |
| 14 | 14 |
| 15 #import "ios/third_party/material_components_ios/src/components/Buttons/src/Mate
rialButtons.h" | 15 #import "ios/third_party/material_components_ios/src/components/Buttons/src/Mate
rialButtons.h" |
| 16 #import "remoting/ios/client_gestures.h" | 16 #import "remoting/ios/client_gestures.h" |
| 17 #import "remoting/ios/client_keyboard.h" | 17 #import "remoting/ios/client_keyboard.h" |
| 18 #import "remoting/ios/session/remoting_client.h" | 18 #import "remoting/ios/session/remoting_client.h" |
| 19 | 19 |
| 20 #include "remoting/client/gesture_interpreter.h" | 20 #include "remoting/client/ui/gesture_interpreter.h" |
| 21 | 21 |
| 22 static const CGFloat kFabInset = 15.f; | 22 static const CGFloat kFabInset = 15.f; |
| 23 static const CGFloat kKeyboardAnimationTime = 0.3; | 23 static const CGFloat kKeyboardAnimationTime = 0.3; |
| 24 | 24 |
| 25 @interface HostViewController () { | 25 @interface HostViewController () { |
| 26 RemotingClient* _client; | 26 RemotingClient* _client; |
| 27 MDCFloatingButton* _floatingButton; | 27 MDCFloatingButton* _floatingButton; |
| 28 ClientGestures* _clientGestures; | 28 ClientGestures* _clientGestures; |
| 29 ClientKeyboard* _clientKeyboard; | 29 ClientKeyboard* _clientKeyboard; |
| 30 CGSize _keyboardSize; | 30 CGSize _keyboardSize; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 [self dismissViewControllerAnimated:YES completion:nil]; | 215 [self dismissViewControllerAnimated:YES completion:nil]; |
| 216 }; | 216 }; |
| 217 [alert addAction:[UIAlertAction actionWithTitle:@"Disconnect" | 217 [alert addAction:[UIAlertAction actionWithTitle:@"Disconnect" |
| 218 style:UIAlertActionStyleCancel | 218 style:UIAlertActionStyleCancel |
| 219 handler:disconnectHandler]]; | 219 handler:disconnectHandler]]; |
| 220 | 220 |
| 221 [self presentViewController:alert animated:YES completion:nil]; | 221 [self presentViewController:alert animated:YES completion:nil]; |
| 222 } | 222 } |
| 223 | 223 |
| 224 @end | 224 @end |
| OLD | NEW |