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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 bool UnityIsRunning() override; | 114 bool UnityIsRunning() override; |
115 NonClientMiddleClickAction GetNonClientMiddleClickAction() override; | 115 NonClientMiddleClickAction GetNonClientMiddleClickAction() override; |
116 void NotifyWindowManagerStartupComplete() override; | 116 void NotifyWindowManagerStartupComplete() override; |
117 | 117 |
118 // ui::TextEditKeybindingDelegate: | 118 // ui::TextEditKeybindingDelegate: |
119 bool MatchEvent(const ui::Event& event, | 119 bool MatchEvent(const ui::Event& event, |
120 std::vector<ui::TextEditCommandAuraLinux>* commands) override; | 120 std::vector<ui::TextEditCommandAuraLinux>* commands) override; |
121 | 121 |
122 // ui::Views::LinuxUI: | 122 // ui::Views::LinuxUI: |
123 void UpdateDeviceScaleFactor(float device_scale_factor) override; | 123 void UpdateDeviceScaleFactor(float device_scale_factor) override; |
| 124 float GetDeviceScaleFactor() const override; |
124 | 125 |
125 private: | 126 private: |
126 typedef std::map<int, SkColor> ColorMap; | 127 typedef std::map<int, SkColor> ColorMap; |
127 typedef std::map<int, color_utils::HSL> TintMap; | 128 typedef std::map<int, color_utils::HSL> TintMap; |
128 typedef std::map<int, gfx::Image> ImageCache; | 129 typedef std::map<int, gfx::Image> ImageCache; |
129 | 130 |
130 // This method returns the colors webkit will use for the scrollbars. When no | 131 // This method returns the colors webkit will use for the scrollbars. When no |
131 // colors are specified by the GTK+ theme, this function averages of the | 132 // colors are specified by the GTK+ theme, this function averages of the |
132 // thumb part and of the track colors. | 133 // thumb part and of the track colors. |
133 void GetScrollbarColors(GdkColor* thumb_active_color, | 134 void GetScrollbarColors(GdkColor* thumb_active_color, |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 } // namespace libgtk2ui | 275 } // namespace libgtk2ui |
275 | 276 |
276 // Access point to the GTK2 desktop system. This should be the only symbol that | 277 // Access point to the GTK2 desktop system. This should be the only symbol that |
277 // is exported in the library; everything else should be used through the | 278 // is exported in the library; everything else should be used through the |
278 // interface, because eventually this .so will be loaded through dlopen at | 279 // interface, because eventually this .so will be loaded through dlopen at |
279 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or | 280 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or |
280 // QT or whatever. | 281 // QT or whatever. |
281 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); | 282 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); |
282 | 283 |
283 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ | 284 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ |
OLD | NEW |