| OLD | NEW | 
|   1 // Copyright 2013 The Chromium Authors. All rights reserved. |   1 // Copyright 2013 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_GFX_LINUX_FONT_DELEGATE_H_ |   5 #ifndef UI_GFX_LINUX_FONT_DELEGATE_H_ | 
|   6 #define UI_GFX_LINUX_FONT_DELEGATE_H_ |   6 #define UI_GFX_LINUX_FONT_DELEGATE_H_ | 
|   7  |   7  | 
|   8 #include <string> |   8 #include <string> | 
|   9  |   9  | 
|  10 #include "base/memory/scoped_ptr.h" |  10 #include "base/memory/scoped_ptr.h" | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
|  21   // Sets the dynamically loaded singleton that provides font preferences. |  21   // Sets the dynamically loaded singleton that provides font preferences. | 
|  22   // This pointer is not owned, and if this method is called a second time, |  22   // This pointer is not owned, and if this method is called a second time, | 
|  23   // the first instance is not deleted. |  23   // the first instance is not deleted. | 
|  24   static void SetInstance(LinuxFontDelegate* instance); |  24   static void SetInstance(LinuxFontDelegate* instance); | 
|  25  |  25  | 
|  26   // Returns a LinuxFontDelegate instance for the toolkit used in |  26   // Returns a LinuxFontDelegate instance for the toolkit used in | 
|  27   // the user's desktop environment. |  27   // the user's desktop environment. | 
|  28   // |  28   // | 
|  29   // Can return NULL, in case no toolkit has been set. (For example, if we're |  29   // Can return NULL, in case no toolkit has been set. (For example, if we're | 
|  30   // running with the "--ash" flag.) |  30   // running with the "--ash" flag.) | 
|  31   static const LinuxFontDelegate* instance(); |  31   static LinuxFontDelegate* instance(); | 
|  32  |  32  | 
|  33   // Returns the default font rendering settings. |  33   // Returns the default font rendering settings. | 
|  34   virtual FontRenderParams GetDefaultFontRenderParams() const = 0; |  34   virtual FontRenderParams GetDefaultFontRenderParams() const = 0; | 
|  35  |  35  | 
|  36   // Returns details about the default UI font. |style_out| holds a bitfield of |  36   // Returns details about the default UI font. |style_out| holds a bitfield of | 
|  37   // gfx::Font::Style values. |  37   // gfx::Font::Style values. | 
|  38   virtual void GetDefaultFontDescription( |  38   virtual void GetDefaultFontDescription( | 
|  39       std::string* family_out, |  39       std::string* family_out, | 
|  40       int* size_pixels_out, |  40       int* size_pixels_out, | 
|  41       int* style_out, |  41       int* style_out, | 
|  42       FontRenderParams* params_out) const = 0; |  42       FontRenderParams* params_out) = 0; | 
|  43 }; |  43 }; | 
|  44  |  44  | 
|  45 }  // namespace gfx |  45 }  // namespace gfx | 
|  46  |  46  | 
|  47 #endif  // UI_GFX_LINUX_FONT_DELEGATE_H_ |  47 #endif  // UI_GFX_LINUX_FONT_DELEGATE_H_ | 
| OLD | NEW |