| 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 "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual SkColor GetActiveSelectionBgColor() const = 0; | 70 virtual SkColor GetActiveSelectionBgColor() const = 0; |
| 71 virtual SkColor GetActiveSelectionFgColor() const = 0; | 71 virtual SkColor GetActiveSelectionFgColor() const = 0; |
| 72 virtual SkColor GetInactiveSelectionBgColor() const = 0; | 72 virtual SkColor GetInactiveSelectionBgColor() const = 0; |
| 73 virtual SkColor GetInactiveSelectionFgColor() const = 0; | 73 virtual SkColor GetInactiveSelectionFgColor() const = 0; |
| 74 virtual double GetCursorBlinkInterval() const = 0; | 74 virtual double GetCursorBlinkInterval() const = 0; |
| 75 | 75 |
| 76 // Returns a NativeTheme that will provide system colors and draw system | 76 // Returns a NativeTheme that will provide system colors and draw system |
| 77 // style widgets. | 77 // style widgets. |
| 78 virtual ui::NativeTheme* GetNativeTheme() const = 0; | 78 virtual ui::NativeTheme* GetNativeTheme() const = 0; |
| 79 | 79 |
| 80 virtual void SetUseSystemTheme(bool use_system_theme) = 0; | |
| 81 virtual bool GetUseSystemTheme() const = 0; | |
| 82 | |
| 83 // Returns whether we should be using the native theme provided by this | 80 // Returns whether we should be using the native theme provided by this |
| 84 // object by default. | 81 // object by default. |
| 85 virtual bool GetDefaultUsesSystemTheme() const = 0; | 82 virtual bool GetDefaultUsesSystemTheme() const = 0; |
| 86 | 83 |
| 87 // Sets visual properties in the desktop environment related to download | 84 // Sets visual properties in the desktop environment related to download |
| 88 // progress, if available. | 85 // progress, if available. |
| 89 virtual void SetDownloadCount(int count) const = 0; | 86 virtual void SetDownloadCount(int count) const = 0; |
| 90 virtual void SetProgressFraction(float percentage) const = 0; | 87 virtual void SetProgressFraction(float percentage) const = 0; |
| 91 | 88 |
| 92 // Checks for platform support for status icons. | 89 // Checks for platform support for status icons. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // Notifies the window manager that start up has completed. | 121 // Notifies the window manager that start up has completed. |
| 125 // Normally Chromium opens a new window on startup and GTK does this | 122 // Normally Chromium opens a new window on startup and GTK does this |
| 126 // automatically. In case Chromium does not open a new window on startup, | 123 // automatically. In case Chromium does not open a new window on startup, |
| 127 // e.g. an existing browser window already exists, this should be called. | 124 // e.g. an existing browser window already exists, this should be called. |
| 128 virtual void NotifyWindowManagerStartupComplete() = 0; | 125 virtual void NotifyWindowManagerStartupComplete() = 0; |
| 129 }; | 126 }; |
| 130 | 127 |
| 131 } // namespace views | 128 } // namespace views |
| 132 | 129 |
| 133 #endif // UI_VIEWS_LINUX_UI_LINUX_UI_H_ | 130 #endif // UI_VIEWS_LINUX_UI_LINUX_UI_H_ |
| OLD | NEW |