| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/ui/uikit_ui_util.h" | 5 #import "ios/chrome/browser/ui/uikit_ui_util.h" |
| 6 | 6 |
| 7 #import <Accelerate/Accelerate.h> | 7 #import <Accelerate/Accelerate.h> |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 #import <QuartzCore/QuartzCore.h> | 9 #import <QuartzCore/QuartzCore.h> |
| 10 #import <UIKit/UIKit.h> | 10 #import <UIKit/UIKit.h> |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 return IsCompact(keyWindow); | 529 return IsCompact(keyWindow); |
| 530 } | 530 } |
| 531 | 531 |
| 532 bool IsCompactTablet(id<UITraitEnvironment> environment) { | 532 bool IsCompactTablet(id<UITraitEnvironment> environment) { |
| 533 return IsIPadIdiom() && IsCompact(environment); | 533 return IsIPadIdiom() && IsCompact(environment); |
| 534 } | 534 } |
| 535 | 535 |
| 536 bool IsCompactTablet() { | 536 bool IsCompactTablet() { |
| 537 return IsIPadIdiom() && IsCompact(); | 537 return IsIPadIdiom() && IsCompact(); |
| 538 } | 538 } |
| 539 |
| 540 UIColor* ColorFromSkColor(SkColor color, CGFloat alpha) { |
| 541 return [UIColor colorWithRed:SkColorGetR(color) / 255.0f |
| 542 green:SkColorGetG(color) / 255.0f |
| 543 blue:SkColorGetB(color) / 255.0f |
| 544 alpha:alpha]; |
| 545 } |
| OLD | NEW |