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

Side by Side Diff: ui/gfx/gfx_module.h

Issue 6246027: Move src/gfx/ to src/ui/gfx... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/gfx/gfx.gyp ('k') | ui/gfx/gfx_module.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 GFX_MODULE_H_ 5 #ifndef UI_GFX_MODULE_H_
6 #define GFX_MODULE_H_ 6 #define UI_GFX_MODULE_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"
11 11
12 namespace gfx { 12 namespace gfx {
13 13
14 // Defines global initializers and associated methods for the gfx module. 14 // Defines global initializers and associated methods for the gfx module.
15 // See net/base/net_module.h for more details. 15 // See net/base/net_module.h for more details.
16 class GfxModule { 16 class GfxModule {
17 public: 17 public:
18 typedef base::StringPiece (*ResourceProvider)(int key); 18 typedef base::StringPiece (*ResourceProvider)(int key);
19 19
20 // Set the function to call when the gfx module needs resources 20 // Set the function to call when the gfx module needs resources
21 static void SetResourceProvider(ResourceProvider func); 21 static void SetResourceProvider(ResourceProvider func);
22 22
23 // Call the resource provider (if one exists) to get the specified resource. 23 // Call the resource provider (if one exists) to get the specified resource.
24 // Returns an empty string if the resource does not exist or if there is no 24 // Returns an empty string if the resource does not exist or if there is no
25 // resource provider. 25 // resource provider.
26 static base::StringPiece GetResource(int key); 26 static base::StringPiece GetResource(int key);
27 27
28 private: 28 private:
29 DISALLOW_IMPLICIT_CONSTRUCTORS(GfxModule); 29 DISALLOW_IMPLICIT_CONSTRUCTORS(GfxModule);
30 }; 30 };
31 31
32 } // namespace gfx 32 } // namespace gfx
33 33
34 #endif // GFX_MODULE_H_ 34 #endif // UI_GFX_MODULE_H_
OLDNEW
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/gfx_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698