| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 #import "ios/chrome/browser/memory/memory_debugger.h" | 5 #import "ios/chrome/browser/memory/memory_debugger.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/ios/ios_util.h" | 9 #include "base/ios/ios_util.h" |
| 10 #import "base/mac/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 base::scoped_nsobject<UILabel> _realMemoryUsedLabel; | 35 base::scoped_nsobject<UILabel> _realMemoryUsedLabel; |
| 36 base::scoped_nsobject<UILabel> _xcodeGaugeLabel; | 36 base::scoped_nsobject<UILabel> _xcodeGaugeLabel; |
| 37 base::scoped_nsobject<UILabel> _dirtyVirtualMemoryLabel; | 37 base::scoped_nsobject<UILabel> _dirtyVirtualMemoryLabel; |
| 38 | 38 |
| 39 // Inputs for memory commands. | 39 // Inputs for memory commands. |
| 40 base::scoped_nsobject<UITextField> _bloatField; | 40 base::scoped_nsobject<UITextField> _bloatField; |
| 41 base::scoped_nsobject<UITextField> _refreshField; | 41 base::scoped_nsobject<UITextField> _refreshField; |
| 42 base::scoped_nsobject<UITextField> _continuousMemoryWarningField; | 42 base::scoped_nsobject<UITextField> _continuousMemoryWarningField; |
| 43 | 43 |
| 44 // A place to store the artifical memory bloat. | 44 // A place to store the artifical memory bloat. |
| 45 scoped_ptr<uint8_t> _bloat; | 45 std::unique_ptr<uint8_t> _bloat; |
| 46 | 46 |
| 47 // Distance the view was pushed up to accomodate the keyboard. | 47 // Distance the view was pushed up to accomodate the keyboard. |
| 48 CGFloat _keyboardOffset; | 48 CGFloat _keyboardOffset; |
| 49 | 49 |
| 50 // The current orientation of the device. | 50 // The current orientation of the device. |
| 51 BOOL _currentOrientation; | 51 BOOL _currentOrientation; |
| 52 } | 52 } |
| 53 | 53 |
| 54 - (instancetype)init { | 54 - (instancetype)init { |
| 55 self = [super initWithFrame:CGRectZero]; | 55 self = [super initWithFrame:CGRectZero]; |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 [alert addAction:[UIAlertAction actionWithTitle:@"OK" | 598 [alert addAction:[UIAlertAction actionWithTitle:@"OK" |
| 599 style:UIAlertActionStyleDefault | 599 style:UIAlertActionStyleDefault |
| 600 handler:nil]]; | 600 handler:nil]]; |
| 601 [[[[UIApplication sharedApplication] keyWindow] rootViewController] | 601 [[[[UIApplication sharedApplication] keyWindow] rootViewController] |
| 602 presentViewController:alert | 602 presentViewController:alert |
| 603 animated:YES | 603 animated:YES |
| 604 completion:nil]; | 604 completion:nil]; |
| 605 } | 605 } |
| 606 | 606 |
| 607 @end | 607 @end |
| OLD | NEW |