OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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 #ifndef CHROME_BROWSER_BOOKMARKS_ENHANCED_IMAGE_STORE_IOS_H_ | |
sky
2014/04/30 18:09:13
nit: newline 3/4.
Kibeom Kim (inactive)
2014/05/01 19:02:26
Done.
| |
5 #define CHROME_BROWSER_BOOKMARKS_ENHANCED_IMAGE_STORE_IOS_H_ | |
6 | |
7 #include "base/memory/ref_counted.h" | |
8 #include "base/memory/ref_counted_memory.h" | |
9 #include "ui/gfx/geometry/size.h" | |
10 #include "ui/gfx/image/image.h" | |
11 | |
12 namespace image_store_ios { | |
sky
2014/04/30 18:09:13
Don't use a namespace in chrome. But once you move
sky
2014/04/30 18:09:13
Why is this only ios? It would be a lot cleaner if
Kibeom Kim (inactive)
2014/05/01 19:02:26
Done.
Kibeom Kim (inactive)
2014/05/01 19:02:26
Done.
| |
13 // Encode the UIImage representation of a gfx::Image. | |
14 const scoped_refptr<base::RefCountedMemory> bytesForImage(gfx::Image image); | |
sky
2014/04/30 18:09:13
Using C++ naming, eg BytesForImage.
Kibeom Kim (inactive)
2014/05/01 19:02:26
Done.
| |
15 | |
16 // Decode the UIImage in the bytes and returns a gfx::Image. | |
17 gfx::Image imageForBytes(const scoped_refptr<base::RefCountedMemory>& data); | |
18 | |
19 // Generates a gfx::Image with a random UIImage representation. Used for tests. | |
20 gfx::Image generateRandomUIImage(gfx::Size& size, float scale); | |
21 } | |
22 | |
23 #endif // CHROME_BROWSER_BOOKMARKS_ENHANCED_IMAGE_STORE_IOS_H_ | |
OLD | NEW |