| 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_DATA_DLL_WIN_H_ | 5 #ifndef UI_BASE_RESOURCE_RESOURCE_DATA_DLL_WIN_H_ |
| 6 #define UI_BASE_RESOURCE_RESOURCE_DATA_DLL_WIN_H_ | 6 #define UI_BASE_RESOURCE_RESOURCE_DATA_DLL_WIN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "ui/base/resource/resource_handle.h" | 13 #include "ui/base/resource/resource_handle.h" |
| 14 | 14 |
| 15 namespace ui { | 15 namespace ui { |
| 16 | 16 |
| 17 class ResourceDataDLL : public ResourceHandle { | 17 class ResourceDataDLL : public ResourceHandle { |
| 18 public: | 18 public: |
| 19 explicit ResourceDataDLL(HINSTANCE module); | 19 explicit ResourceDataDLL(HINSTANCE module); |
| 20 ~ResourceDataDLL() override; | 20 ~ResourceDataDLL() override; |
| 21 | 21 |
| 22 // ResourceHandle implementation: | 22 // ResourceHandle implementation: |
| 23 bool HasResource(uint16_t resource_id) const override; | 23 bool HasResource(uint16_t resource_id) const override; |
| 24 bool GetStringPiece(uint16_t resource_id, | 24 bool GetStringPiece(uint16_t resource_id, |
| 25 base::StringPiece* data) const override; | 25 base::StringPiece* data) const override; |
| 26 base::RefCountedStaticMemory* GetStaticMemory( | 26 base::RefCountedStaticMemory* GetStaticMemory( |
| 27 uint16_t resource_id) const override; | 27 uint16_t resource_id) const override; |
| 28 TextEncodingType GetTextEncodingType() const override; | 28 TextEncodingType GetTextEncodingType() const override; |
| 29 ScaleFactor GetScaleFactor() const override; | 29 ScaleFactor GetScaleFactor() const override; |
| 30 bool HasOnlyMaterialDesignAssets() const override; | |
| 31 | 30 |
| 32 private: | 31 private: |
| 33 const HINSTANCE module_; | 32 const HINSTANCE module_; |
| 34 | 33 |
| 35 DISALLOW_COPY_AND_ASSIGN(ResourceDataDLL); | 34 DISALLOW_COPY_AND_ASSIGN(ResourceDataDLL); |
| 36 }; | 35 }; |
| 37 | 36 |
| 38 } // namespace ui | 37 } // namespace ui |
| 39 | 38 |
| 40 #endif // UI_BASE_RESOURCE_RESOURCE_DATA_DLL_WIN_H_ | 39 #endif // UI_BASE_RESOURCE_RESOURCE_DATA_DLL_WIN_H_ |
| OLD | NEW |