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

Side by Side Diff: chrome/browser/bookmarks/enhanced/image_store_ios.h

Issue 259863007: Local salient image storage for enhanced bookmark experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 6 years, 7 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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698