blob: e21e9aae6e57481fa133267b052389bb4ebc9c3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_BASE_RESOURCE_RESOURCE_DATA_DLL_WIN_H_
#define UI_BASE_RESOURCE_RESOURCE_DATA_DLL_WIN_H_
#pragma once
#include <windows.h>
#include "base/compiler_specific.h"
#include "ui/base/resource/resource_handle.h"
namespace ui {
class ResourceDataDLL : public ResourceHandle {
public:
explicit ResourceDataDLL(HINSTANCE module);
virtual ~ResourceDataDLL();
// ResourceHandle implementation:
virtual bool GetStringPiece(uint16 resource_id,
base::StringPiece* data) const OVERRIDE;
virtual base::RefCountedStaticMemory* GetStaticMemory(
uint16 resource_id) const OVERRIDE;
virtual TextEncodingType GetTextEncodingType() const OVERRIDE;
virtual float GetScaleFactor() const OVERRIDE;
private:
const HINSTANCE module_;
DISALLOW_COPY_AND_ASSIGN(ResourceDataDLL);
};
} // namespace ui
#endif // UI_BASE_RESOURCE_RESOURCE_DATA_DLL_WIN_H_
|