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

Side by Side Diff: ui/base/test/ios/ui_image_test_utils.h

Issue 2645653003: Expose thumbnails of pages to iOS share extensions. (Closed)
Patch Set: Addressed comments. Created 3 years, 11 months 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_BASE_TEST_IOS_UI_IMAGE_TEST_UTILS_H_
6 #define UI_BASE_TEST_IOS_UI_IMAGE_TEST_UTILS_H_
7
8 #import <UIKit/UIKit.h>
9
10 namespace ui {
11 namespace test {
12 namespace uiimage_utils {
13
14 // Returns a new UIImage of size |size| with a solid color of |color|.
15 UIImage* UIImageWithSizeAndSolidColor(CGSize const& size, UIColor* color);
16
17 // Returns whether the pixels in |image1| are equal to the pixels in |image2|.
18 // This is unlike UIImage's |isEqual:| method which only returns YES if the
19 // memory backing the images is the same.
20 // Limitation in the current implementation of this function: both UIImages must
21 // be backed by a CGImage.
22 bool UIImagesAreEqual(UIImage* image1, UIImage* image2);
23
24 } // namespace uiimage_utils
25 } // test
sdefresne 2017/01/26 14:50:40 // namespace test
jif 2017/01/27 11:56:11 Done.
26 } // namespace ui
27
28 #endif // UI_BASE_TEST_IOS_UI_IMAGE_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698