OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 #include "components/enhanced_bookmarks/image_record.h" |
| 6 |
| 7 namespace enhanced_bookmarks { |
| 8 |
| 9 ImageRecord::ImageRecord(scoped_ptr<gfx::Image> image, |
| 10 const GURL& url, |
| 11 SkColor dominant_color) |
| 12 : image(image.Pass()), |
| 13 url(url), |
| 14 dominant_color(dominant_color) { |
| 15 } |
| 16 |
| 17 ImageRecord::ImageRecord(scoped_ptr<gfx::Image> image, const GURL& url) |
| 18 : ImageRecord(image.Pass(), url, SK_ColorBLACK) { |
| 19 } |
| 20 |
| 21 ImageRecord::ImageRecord() |
| 22 : ImageRecord(scoped_ptr<gfx::Image>(new gfx::Image()), GURL()) { |
| 23 } |
| 24 |
| 25 ImageRecord::~ImageRecord() { |
| 26 } |
| 27 |
| 28 } // namespace enhanced_bookmarks |
OLD | NEW |