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

Side by Side Diff: app/resource_bundle.h

Issue 3452030: FBTF: Moves code to the headers. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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
« no previous file with comments | « app/active_window_watcher_x.cc ('k') | app/resource_bundle.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 APP_RESOURCE_BUNDLE_H_ 5 #ifndef APP_RESOURCE_BUNDLE_H_
6 #define APP_RESOURCE_BUNDLE_H_ 6 #define APP_RESOURCE_BUNDLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 static const SkColor frame_color_incognito; 154 static const SkColor frame_color_incognito;
155 static const SkColor frame_color_incognito_inactive; 155 static const SkColor frame_color_incognito_inactive;
156 static const SkColor toolbar_color; 156 static const SkColor toolbar_color;
157 static const SkColor toolbar_separator_color; 157 static const SkColor toolbar_separator_color;
158 158
159 private: 159 private:
160 // Helper class for managing data packs. 160 // Helper class for managing data packs.
161 class LoadedDataPack { 161 class LoadedDataPack {
162 public: 162 public:
163 explicit LoadedDataPack(const FilePath& path); 163 explicit LoadedDataPack(const FilePath& path);
164 ~LoadedDataPack();
164 bool GetStringPiece(int resource_id, base::StringPiece* data) const; 165 bool GetStringPiece(int resource_id, base::StringPiece* data) const;
165 RefCountedStaticMemory* GetStaticMemory(int resource_id) const; 166 RefCountedStaticMemory* GetStaticMemory(int resource_id) const;
166 167
167 private: 168 private:
168 void Load(); 169 void Load();
169 170
170 scoped_ptr<base::DataPack> data_pack_; 171 scoped_ptr<base::DataPack> data_pack_;
171 FilePath path_; 172 FilePath path_;
172 173
173 DISALLOW_COPY_AND_ASSIGN(LoadedDataPack); 174 DISALLOW_COPY_AND_ASSIGN(LoadedDataPack);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 scoped_ptr<gfx::Font> medium_bold_font_; 260 scoped_ptr<gfx::Font> medium_bold_font_;
260 scoped_ptr<gfx::Font> large_font_; 261 scoped_ptr<gfx::Font> large_font_;
261 scoped_ptr<gfx::Font> web_font_; 262 scoped_ptr<gfx::Font> web_font_;
262 263
263 static ResourceBundle* g_shared_instance_; 264 static ResourceBundle* g_shared_instance_;
264 265
265 DISALLOW_COPY_AND_ASSIGN(ResourceBundle); 266 DISALLOW_COPY_AND_ASSIGN(ResourceBundle);
266 }; 267 };
267 268
268 #endif // APP_RESOURCE_BUNDLE_H_ 269 #endif // APP_RESOURCE_BUNDLE_H_
OLDNEW
« no previous file with comments | « app/active_window_watcher_x.cc ('k') | app/resource_bundle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698