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

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

Issue 10387010: Select theme resources from ResourceBundle at requested scale factor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master. Created 8 years, 7 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 | Annotate | Revision Log
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 #pragma once 7 #pragma once
8 8
9 #include <windows.h> 9 #include <windows.h>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "ui/base/resource/resource_handle.h" 12 #include "ui/base/resource/resource_handle.h"
13 13
14 namespace ui { 14 namespace ui {
15 15
16 class ResourceDataDLL : public ResourceHandle { 16 class ResourceDataDLL : public ResourceHandle {
17 public: 17 public:
18 explicit ResourceDataDLL(HINSTANCE module); 18 explicit ResourceDataDLL(HINSTANCE module);
19 virtual ~ResourceDataDLL(); 19 virtual ~ResourceDataDLL();
20 20
21 // ResourceHandle implementation: 21 // ResourceHandle implementation:
22 virtual bool HasResource(uint16 resource_id) const OVERRIDE;
22 virtual bool GetStringPiece(uint16 resource_id, 23 virtual bool GetStringPiece(uint16 resource_id,
23 base::StringPiece* data) const OVERRIDE; 24 base::StringPiece* data) const OVERRIDE;
24 virtual base::RefCountedStaticMemory* GetStaticMemory( 25 virtual base::RefCountedStaticMemory* GetStaticMemory(
25 uint16 resource_id) const OVERRIDE; 26 uint16 resource_id) const OVERRIDE;
26 virtual TextEncodingType GetTextEncodingType() const OVERRIDE; 27 virtual TextEncodingType GetTextEncodingType() const OVERRIDE;
27 virtual float GetScaleFactor() const OVERRIDE; 28 virtual ScaleFactor GetScaleFactor() const OVERRIDE;
28 29
29 private: 30 private:
30 const HINSTANCE module_; 31 const HINSTANCE module_;
31 32
32 DISALLOW_COPY_AND_ASSIGN(ResourceDataDLL); 33 DISALLOW_COPY_AND_ASSIGN(ResourceDataDLL);
33 }; 34 };
34 35
35 } // namespace ui 36 } // namespace ui
36 37
37 #endif // UI_BASE_RESOURCE_RESOURCE_DATA_DLL_WIN_H_ 38 #endif // UI_BASE_RESOURCE_RESOURCE_DATA_DLL_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698