Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ui / base / resource / resource_data_dll_win.h
blob1ad1f9b927ffc57668c80559b1e51509a77f5754
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
3 // found in the LICENSE file.
5 #ifndef UI_BASE_RESOURCE_RESOURCE_DATA_DLL_WIN_H_
6 #define UI_BASE_RESOURCE_RESOURCE_DATA_DLL_WIN_H_
8 #include <windows.h>
10 #include "base/compiler_specific.h"
11 #include "ui/base/resource/resource_handle.h"
13 namespace ui {
15 class ResourceDataDLL : public ResourceHandle {
16 public:
17 explicit ResourceDataDLL(HINSTANCE module);
18 ~ResourceDataDLL() override;
20 // ResourceHandle implementation:
21 bool HasResource(uint16 resource_id) const override;
22 bool GetStringPiece(uint16 resource_id,
23 base::StringPiece* data) const override;
24 base::RefCountedStaticMemory* GetStaticMemory(
25 uint16 resource_id) const override;
26 TextEncodingType GetTextEncodingType() const override;
27 ScaleFactor GetScaleFactor() const override;
28 bool HasOnlyMaterialDesignAssets() const override;
30 private:
31 const HINSTANCE module_;
33 DISALLOW_COPY_AND_ASSIGN(ResourceDataDLL);
36 } // namespace ui
38 #endif // UI_BASE_RESOURCE_RESOURCE_DATA_DLL_WIN_H_