| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |