OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ |
6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ | 6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 // Draws the GTK button border for state |gtk_state| onto a bitmap. | 58 // Draws the GTK button border for state |gtk_state| onto a bitmap. |
59 SkBitmap DrawGtkButtonBorder(int gtk_state, | 59 SkBitmap DrawGtkButtonBorder(int gtk_state, |
60 bool focused, | 60 bool focused, |
61 bool call_to_action, | 61 bool call_to_action, |
62 int width, | 62 int width, |
63 int height) const; | 63 int height) const; |
64 | 64 |
65 // ui::LinuxInputMethodContextFactory: | 65 // ui::LinuxInputMethodContextFactory: |
66 scoped_ptr<ui::LinuxInputMethodContext> CreateInputMethodContext( | 66 scoped_ptr<ui::LinuxInputMethodContext> CreateInputMethodContext( |
67 ui::LinuxInputMethodContextDelegate* delegate) const override; | 67 ui::LinuxInputMethodContextDelegate* delegate, |
| 68 bool is_simple) const override; |
68 | 69 |
69 // gfx::LinuxFontDelegate: | 70 // gfx::LinuxFontDelegate: |
70 gfx::FontRenderParams GetDefaultFontRenderParams() const override; | 71 gfx::FontRenderParams GetDefaultFontRenderParams() const override; |
71 void GetDefaultFontDescription( | 72 void GetDefaultFontDescription( |
72 std::string* family_out, | 73 std::string* family_out, |
73 int* size_pixels_out, | 74 int* size_pixels_out, |
74 int* style_out, | 75 int* style_out, |
75 gfx::FontRenderParams* params_out) const override; | 76 gfx::FontRenderParams* params_out) const override; |
76 | 77 |
77 // ui::LinuxShellDialog: | 78 // ui::LinuxShellDialog: |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 } // namespace libgtk2ui | 276 } // namespace libgtk2ui |
276 | 277 |
277 // Access point to the GTK2 desktop system. This should be the only symbol that | 278 // Access point to the GTK2 desktop system. This should be the only symbol that |
278 // is exported in the library; everything else should be used through the | 279 // is exported in the library; everything else should be used through the |
279 // interface, because eventually this .so will be loaded through dlopen at | 280 // interface, because eventually this .so will be loaded through dlopen at |
280 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or | 281 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or |
281 // QT or whatever. | 282 // QT or whatever. |
282 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); | 283 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); |
283 | 284 |
284 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ | 285 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ |
OLD | NEW |