Index: ios/web_view/shell/shell_view_controller.m |
diff --git a/ios/web_view/shell/shell_view_controller.mm b/ios/web_view/shell/shell_view_controller.m |
similarity index 95% |
rename from ios/web_view/shell/shell_view_controller.mm |
rename to ios/web_view/shell/shell_view_controller.m |
index ed95efaa9b332fa023891b7f42627f415fc12d8a..274a624514c458be2bb80842c814c188e526f55a 100644 |
--- a/ios/web_view/shell/shell_view_controller.mm |
+++ b/ios/web_view/shell/shell_view_controller.m |
@@ -12,21 +12,17 @@ |
#error "This file requires ARC support." |
#endif |
-namespace { |
-const CGFloat kButtonSize = 44; |
-} |
- |
@interface ShellViewController () |
// Container for |webView|. |
-@property (nonatomic, strong) UIView* containerView; |
+@property(nonatomic, strong) UIView* containerView; |
// Text field used for navigating to URLs. |
-@property (nonatomic, strong) UITextField* field; |
+@property(nonatomic, strong) UITextField* field; |
// Toolbar containing navigation buttons and |field|. |
-@property (nonatomic, strong) UIToolbar* toolbar; |
+@property(nonatomic, strong) UIToolbar* toolbar; |
// CRIWV view which renders the web page. |
-@property (nonatomic, strong) id<CRIWVWebView> webView; |
+@property(nonatomic, strong) id<CRIWVWebView> webView; |
// Handles the translation of the content displayed in |webView|. |
-@property (nonatomic, strong) TranslateController* translateController; |
+@property(nonatomic, strong) TranslateController* translateController; |
- (void)back; |
- (void)forward; |
@@ -66,8 +62,10 @@ const CGFloat kButtonSize = 44; |
UIViewAutoresizingFlexibleHeight]; |
[self.view addSubview:_containerView]; |
- // Text field. |
const int kButtonCount = 3; |
+ const CGFloat kButtonSize = 44; |
+ |
+ // Text field. |
self.field = [[UITextField alloc] |
initWithFrame:CGRectMake(kButtonCount * kButtonSize, 6, |
CGRectGetWidth([_toolbar frame]) - |