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

Side by Side Diff: ui/base/resource/resource_data_dll_win.h

Issue 2209363002: Remove material design resource pak infrastructure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove another mac test file Created 4 years, 4 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
« no previous file with comments | « ui/base/resource/resource_bundle_unittest.cc ('k') | ui/base/resource/resource_data_dll_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « ui/base/resource/resource_bundle_unittest.cc ('k') | ui/base/resource/resource_data_dll_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698