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

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

Issue 10151025: Add scale factor tag to data packs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build 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_HANDLE_H_ 5 #ifndef UI_BASE_RESOURCE_RESOURCE_HANDLE_H_
6 #define UI_BASE_RESOURCE_RESOURCE_HANDLE_H_ 6 #define UI_BASE_RESOURCE_RESOURCE_HANDLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/string_piece.h" 10 #include "base/string_piece.h"
(...skipping 22 matching lines...) Expand all
33 virtual bool GetStringPiece(uint16 resource_id, 33 virtual bool GetStringPiece(uint16 resource_id,
34 base::StringPiece* data) const = 0; 34 base::StringPiece* data) const = 0;
35 35
36 // Like GetStringPiece(), but returns a reference to memory. 36 // Like GetStringPiece(), but returns a reference to memory.
37 // Caller owns the returned object. 37 // Caller owns the returned object.
38 virtual base::RefCountedStaticMemory* GetStaticMemory( 38 virtual base::RefCountedStaticMemory* GetStaticMemory(
39 uint16 resource_id) const = 0; 39 uint16 resource_id) const = 0;
40 40
41 // Get the encoding type of text resources. 41 // Get the encoding type of text resources.
42 virtual TextEncodingType GetTextEncodingType() const = 0; 42 virtual TextEncodingType GetTextEncodingType() const = 0;
43
44 // Get the scale factor of any image resources.
sky 2012/04/25 21:11:42 Same comment about improving this description.
sail 2012/04/25 22:18:35 Done.
45 virtual float GetScaleFactor() const = 0;
43 }; 46 };
44 47
45 } // namespace ui 48 } // namespace ui
46 49
47 #endif // UI_BASE_RESOURCE_RESOURCE_HANDLE_H_ 50 #endif // UI_BASE_RESOURCE_RESOURCE_HANDLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698