| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ui/app_list/cocoa/signin_view_controller.h" | 5 #import "ui/app_list/cocoa/signin_view_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
| 8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
| 9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 10 #include "skia/ext/skia_utils_mac.h" | 10 #include "skia/ext/skia_utils_mac.h" |
| 11 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | |
| 12 #include "third_party/skia/include/core/SkColor.h" | 11 #include "third_party/skia/include/core/SkColor.h" |
| 12 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" |
| 13 #include "ui/app_list/app_list_constants.h" | 13 #include "ui/app_list/app_list_constants.h" |
| 14 #include "ui/app_list/signin_delegate.h" | 14 #include "ui/app_list/signin_delegate.h" |
| 15 #import "ui/base/cocoa/controls/blue_label_button.h" | 15 #import "ui/base/cocoa/controls/blue_label_button.h" |
| 16 #import "ui/base/cocoa/controls/hyperlink_button_cell.h" | 16 #import "ui/base/cocoa/controls/hyperlink_button_cell.h" |
| 17 #include "ui/base/resource/resource_bundle.h" | 17 #include "ui/base/resource/resource_bundle.h" |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 const CGFloat kTopPadding = 40; | 21 const CGFloat kTopPadding = 40; |
| 22 const CGFloat kBottomPadding = 40; | 22 const CGFloat kBottomPadding = 40; |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 @synthesize cornerRadius = cornerRadius_; | 189 @synthesize cornerRadius = cornerRadius_; |
| 190 | 190 |
| 191 - (void)drawRect:(NSRect)dirtyRect { | 191 - (void)drawRect:(NSRect)dirtyRect { |
| 192 [gfx::SkColorToSRGBNSColor(app_list::kContentsBackgroundColor) set]; | 192 [gfx::SkColorToSRGBNSColor(app_list::kContentsBackgroundColor) set]; |
| 193 [[NSBezierPath bezierPathWithRoundedRect:[self bounds] | 193 [[NSBezierPath bezierPathWithRoundedRect:[self bounds] |
| 194 xRadius:cornerRadius_ | 194 xRadius:cornerRadius_ |
| 195 yRadius:cornerRadius_] fill]; | 195 yRadius:cornerRadius_] fill]; |
| 196 } | 196 } |
| 197 | 197 |
| 198 @end | 198 @end |
| OLD | NEW |