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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 NativeThemeGetter; | 50 NativeThemeGetter; |
51 | 51 |
52 // Setters used by GConfListener: | 52 // Setters used by GConfListener: |
53 void SetWindowButtonOrdering( | 53 void SetWindowButtonOrdering( |
54 const std::vector<views::FrameButton>& leading_buttons, | 54 const std::vector<views::FrameButton>& leading_buttons, |
55 const std::vector<views::FrameButton>& trailing_buttons); | 55 const std::vector<views::FrameButton>& trailing_buttons); |
56 void SetNonClientMiddleClickAction(NonClientMiddleClickAction action); | 56 void SetNonClientMiddleClickAction(NonClientMiddleClickAction action); |
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, | |
61 bool call_to_action, | |
62 int width, | 60 int width, |
63 int height) const; | 61 int height) const; |
64 | 62 |
65 // ui::LinuxInputMethodContextFactory: | 63 // ui::LinuxInputMethodContextFactory: |
66 scoped_ptr<ui::LinuxInputMethodContext> CreateInputMethodContext( | 64 scoped_ptr<ui::LinuxInputMethodContext> CreateInputMethodContext( |
67 ui::LinuxInputMethodContextDelegate* delegate, | 65 ui::LinuxInputMethodContextDelegate* delegate, |
68 bool is_simple) const override; | 66 bool is_simple) const override; |
69 | 67 |
70 // gfx::LinuxFontDelegate: | 68 // gfx::LinuxFontDelegate: |
71 gfx::FontRenderParams GetDefaultFontRenderParams() const override; | 69 gfx::FontRenderParams GetDefaultFontRenderParams() const override; |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 } // namespace libgtk2ui | 274 } // namespace libgtk2ui |
277 | 275 |
278 // Access point to the GTK2 desktop system. This should be the only symbol that | 276 // Access point to the GTK2 desktop system. This should be the only symbol that |
279 // is exported in the library; everything else should be used through the | 277 // is exported in the library; everything else should be used through the |
280 // interface, because eventually this .so will be loaded through dlopen at | 278 // interface, because eventually this .so will be loaded through dlopen at |
281 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or | 279 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or |
282 // QT or whatever. | 280 // QT or whatever. |
283 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); | 281 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); |
284 | 282 |
285 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ | 283 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ |
OLD | NEW |