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; | |
125 | 124 |
126 private: | 125 private: |
127 typedef std::map<int, SkColor> ColorMap; | 126 typedef std::map<int, SkColor> ColorMap; |
128 typedef std::map<int, color_utils::HSL> TintMap; | 127 typedef std::map<int, color_utils::HSL> TintMap; |
129 typedef std::map<int, gfx::Image> ImageCache; | 128 typedef std::map<int, gfx::Image> ImageCache; |
130 | 129 |
131 // This method returns the colors webkit will use for the scrollbars. When no | 130 // This method returns the colors webkit will use for the scrollbars. When no |
132 // colors are specified by the GTK+ theme, this function averages of the | 131 // colors are specified by the GTK+ theme, this function averages of the |
133 // thumb part and of the track colors. | 132 // thumb part and of the track colors. |
134 void GetScrollbarColors(GdkColor* thumb_active_color, | 133 void GetScrollbarColors(GdkColor* thumb_active_color, |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 } // namespace libgtk2ui | 274 } // namespace libgtk2ui |
276 | 275 |
277 // 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 |
278 // 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 |
279 // interface, because eventually this .so will be loaded through dlopen at | 278 // 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 | 279 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or |
281 // QT or whatever. | 280 // QT or whatever. |
282 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); | 281 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); |
283 | 282 |
284 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ | 283 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ |
OLD | NEW |