| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_BASE_RESOURCE_RESOURCE_HANDLE_H_ | 5 #ifndef UI_BASE_RESOURCE_RESOURCE_HANDLE_H_ |
| 6 #define UI_BASE_RESOURCE_RESOURCE_HANDLE_H_ | 6 #define UI_BASE_RESOURCE_RESOURCE_HANDLE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/strings/string_piece.h" | 10 #include "base/strings/string_piece.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // Caller owns the returned object. | 41 // Caller owns the returned object. |
| 42 virtual base::RefCountedStaticMemory* GetStaticMemory( | 42 virtual base::RefCountedStaticMemory* GetStaticMemory( |
| 43 uint16_t resource_id) const = 0; | 43 uint16_t resource_id) const = 0; |
| 44 | 44 |
| 45 // Get the encoding type of text resources. | 45 // Get the encoding type of text resources. |
| 46 virtual TextEncodingType GetTextEncodingType() const = 0; | 46 virtual TextEncodingType GetTextEncodingType() const = 0; |
| 47 | 47 |
| 48 // The scale of images in this resource pack relative to images in the 1x | 48 // The scale of images in this resource pack relative to images in the 1x |
| 49 // resource pak. | 49 // resource pak. |
| 50 virtual ScaleFactor GetScaleFactor() const = 0; | 50 virtual ScaleFactor GetScaleFactor() const = 0; |
| 51 | |
| 52 // Returns true if the only resources contained within this DataPack are | |
| 53 // material design image assets. | |
| 54 virtual bool HasOnlyMaterialDesignAssets() const = 0; | |
| 55 }; | 51 }; |
| 56 | 52 |
| 57 } // namespace ui | 53 } // namespace ui |
| 58 | 54 |
| 59 #endif // UI_BASE_RESOURCE_RESOURCE_HANDLE_H_ | 55 #endif // UI_BASE_RESOURCE_RESOURCE_HANDLE_H_ |
| OLD | NEW |