| 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_VIEWS_LINUX_UI_LINUX_UI_H_ | 5 #ifndef UI_VIEWS_LINUX_UI_LINUX_UI_H_ |
| 6 #define UI_VIEWS_LINUX_UI_LINUX_UI_H_ | 6 #define UI_VIEWS_LINUX_UI_LINUX_UI_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace ui { | 35 namespace ui { |
| 36 class NativeTheme; | 36 class NativeTheme; |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace views { | 39 namespace views { |
| 40 class Border; | 40 class Border; |
| 41 class LabelButton; | 41 class LabelButton; |
| 42 class LabelButtonBorder; | 42 class LabelButtonBorder; |
| 43 class View; | |
| 44 class WindowButtonOrderObserver; | 43 class WindowButtonOrderObserver; |
| 45 | 44 |
| 46 // Adapter class with targets to render like different toolkits. Set by any | 45 // Adapter class with targets to render like different toolkits. Set by any |
| 47 // project that wants to do linux desktop native rendering. | 46 // project that wants to do linux desktop native rendering. |
| 48 // | 47 // |
| 49 // TODO(erg): We're hardcoding GTK2, when we'll need to have backends for (at | 48 // TODO(erg): We're hardcoding GTK2, when we'll need to have backends for (at |
| 50 // minimum) GTK2 and GTK3. LinuxUI::instance() should actually be a very | 49 // minimum) GTK2 and GTK3. LinuxUI::instance() should actually be a very |
| 51 // complex method that pokes around with dlopen against a libuigtk2.so, a | 50 // complex method that pokes around with dlopen against a libuigtk2.so, a |
| 52 // liuigtk3.so, etc. | 51 // liuigtk3.so, etc. |
| 53 class VIEWS_EXPORT LinuxUI : public ui::LinuxInputMethodContextFactory, | 52 class VIEWS_EXPORT LinuxUI : public ui::LinuxInputMethodContextFactory, |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // recalculated. | 155 // recalculated. |
| 157 virtual void UpdateDeviceScaleFactor() = 0; | 156 virtual void UpdateDeviceScaleFactor() = 0; |
| 158 | 157 |
| 159 // Determines the device scale factor of the primary screen. | 158 // Determines the device scale factor of the primary screen. |
| 160 virtual float GetDeviceScaleFactor() const = 0; | 159 virtual float GetDeviceScaleFactor() const = 0; |
| 161 }; | 160 }; |
| 162 | 161 |
| 163 } // namespace views | 162 } // namespace views |
| 164 | 163 |
| 165 #endif // UI_VIEWS_LINUX_UI_LINUX_UI_H_ | 164 #endif // UI_VIEWS_LINUX_UI_LINUX_UI_H_ |
| OLD | NEW |