Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: ios/chrome/browser/ui/uikit_ui_util.mm

Issue 1413903008: Add LargeIconCache and LargeIconServiceFactory for iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using wrong thread pool Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698