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

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

Issue 10151025: Add scale factor tag to data packs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « ui/base/resource/resource_data_dll_win.h ('k') | ui/base/resource/resource_handle.h » ('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 #include "ui/base/resource/resource_data_dll_win.h" 5 #include "ui/base/resource/resource_data_dll_win.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/ref_counted_memory.h" 8 #include "base/memory/ref_counted_memory.h"
9 #include "base/win/resource_util.h" 9 #include "base/win/resource_util.h"
10 10
(...skipping 30 matching lines...) Expand all
41 return new base::RefCountedStaticMemory( 41 return new base::RefCountedStaticMemory(
42 reinterpret_cast<const unsigned char*>(data_ptr), data_size); 42 reinterpret_cast<const unsigned char*>(data_ptr), data_size);
43 } 43 }
44 return NULL; 44 return NULL;
45 } 45 }
46 46
47 ResourceHandle::TextEncodingType ResourceDataDLL::GetTextEncodingType() const { 47 ResourceHandle::TextEncodingType ResourceDataDLL::GetTextEncodingType() const {
48 return BINARY; 48 return BINARY;
49 } 49 }
50 50
51 float ResourceDataDLL::GetScaleFactor() const {
52 return 1.0;
53 }
54
51 } // namespace ui 55 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/resource/resource_data_dll_win.h ('k') | ui/base/resource/resource_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698