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

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

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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/dialogs/select_file_dialog_mac.mm ('k') | ui/gfx/image/image.cc » ('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 // DataPack represents a read-only view onto an on-disk file that contains 5 // DataPack represents a read-only view onto an on-disk file that contains
6 // (key, value) pairs of data. It's used to store static resources like 6 // (key, value) pairs of data. It's used to store static resources like
7 // translation strings and images. 7 // translation strings and images.
8 8
9 #ifndef UI_BASE_RESOURCE_DATA_PACK_H_ 9 #ifndef UI_BASE_RESOURCE_DATA_PACK_H_
10 #define UI_BASE_RESOURCE_DATA_PACK_H_ 10 #define UI_BASE_RESOURCE_DATA_PACK_H_
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 namespace file_util { 28 namespace file_util {
29 class MemoryMappedFile; 29 class MemoryMappedFile;
30 } 30 }
31 31
32 namespace ui { 32 namespace ui {
33 33
34 class UI_EXPORT DataPack : public ResourceHandle { 34 class UI_EXPORT DataPack : public ResourceHandle {
35 public: 35 public:
36 DataPack(ui::ScaleFactor scale_factor); 36 explicit DataPack(ui::ScaleFactor scale_factor);
37 virtual ~DataPack(); 37 virtual ~DataPack();
38 38
39 // Load a pack file from |path|, returning false on error. 39 // Load a pack file from |path|, returning false on error.
40 bool LoadFromPath(const FilePath& path); 40 bool LoadFromPath(const FilePath& path);
41 41
42 // Loads a pack file from |file|, returning false on error. 42 // Loads a pack file from |file|, returning false on error.
43 bool LoadFromFile(base::PlatformFile file); 43 bool LoadFromFile(base::PlatformFile file);
44 44
45 // Writes a pack file containing |resources| to |path|. If there are any 45 // Writes a pack file containing |resources| to |path|. If there are any
46 // text resources to be written, their encoding must already agree to the 46 // text resources to be written, their encoding must already agree to the
(...skipping 28 matching lines...) Expand all
75 // The scale of the image in this resource pack relative to images in the 1x 75 // The scale of the image in this resource pack relative to images in the 1x
76 // resource pak. 76 // resource pak.
77 ui::ScaleFactor scale_factor_; 77 ui::ScaleFactor scale_factor_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(DataPack); 79 DISALLOW_COPY_AND_ASSIGN(DataPack);
80 }; 80 };
81 81
82 } // namespace ui 82 } // namespace ui
83 83
84 #endif // UI_BASE_RESOURCE_DATA_PACK_H_ 84 #endif // UI_BASE_RESOURCE_DATA_PACK_H_
OLDNEW
« no previous file with comments | « ui/base/dialogs/select_file_dialog_mac.mm ('k') | ui/gfx/image/image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698