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 |
| 5 #ifndef CHROME_BROWSER_ANDROID_THUMBNAIL_THUMBNAIL_H_ |
| 6 #define CHROME_BROWSER_ANDROID_THUMBNAIL_THUMBNAIL_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "cc/resources/ui_resource_client.h" |
| 10 |
| 11 namespace gfx { |
| 12 class Size; |
| 13 class SizeF; |
| 14 } |
| 15 |
| 16 typedef int TabId; |
| 17 |
| 18 class Thumbnail : public base::RefCountedThreadSafe<Thumbnail> { |
| 19 public: |
| 20 // Returns the size of the content represented by this thumbnail. Content |
| 21 // may be smaller than the data size because ETC1 pads the border of the |
| 22 // images. |
| 23 virtual gfx::Size GetScaledContentSize() const = 0; |
| 24 // Returns data size of the thumbnail after scaling.. |
| 25 virtual gfx::SizeF GetScaledDataSize() const = 0; |
| 26 virtual cc::UIResourceId ui_resource_id() const = 0; |
| 27 virtual TabId tab_id() const = 0; |
| 28 |
| 29 protected: |
| 30 virtual ~Thumbnail() {} |
| 31 |
| 32 friend class base::RefCountedThreadSafe<Thumbnail>; |
| 33 }; |
| 34 |
| 35 #endif // CHROME_BROWSER_ANDROID_THUMBNAIL_THUMBNAIL_H_ |
OLD | NEW |