| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 enum NonClientMiddleClickAction { | 56 enum NonClientMiddleClickAction { |
| 57 MIDDLE_CLICK_ACTION_NONE, | 57 MIDDLE_CLICK_ACTION_NONE, |
| 58 MIDDLE_CLICK_ACTION_LOWER, | 58 MIDDLE_CLICK_ACTION_LOWER, |
| 59 MIDDLE_CLICK_ACTION_MINIMIZE, | 59 MIDDLE_CLICK_ACTION_MINIMIZE, |
| 60 MIDDLE_CLICK_ACTION_TOGGLE_MAXIMIZE | 60 MIDDLE_CLICK_ACTION_TOGGLE_MAXIMIZE |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 typedef base::Callback<ui::NativeTheme*(aura::Window* window)> | 63 typedef base::Callback<ui::NativeTheme*(aura::Window* window)> |
| 64 NativeThemeGetter; | 64 NativeThemeGetter; |
| 65 | 65 |
| 66 virtual ~LinuxUI() {} | 66 ~LinuxUI() override {} |
| 67 | 67 |
| 68 // Sets the dynamically loaded singleton that draws the desktop native UI. | 68 // Sets the dynamically loaded singleton that draws the desktop native UI. |
| 69 static void SetInstance(LinuxUI* instance); | 69 static void SetInstance(LinuxUI* instance); |
| 70 | 70 |
| 71 // Returns a LinuxUI instance for the toolkit used in the user's desktop | 71 // Returns a LinuxUI instance for the toolkit used in the user's desktop |
| 72 // environment. | 72 // environment. |
| 73 // | 73 // |
| 74 // Can return NULL, in case no toolkit has been set. (For example, if we're | 74 // Can return NULL, in case no toolkit has been set. (For example, if we're |
| 75 // running with the "--ash" flag.) | 75 // running with the "--ash" flag.) |
| 76 static LinuxUI* instance(); | 76 static LinuxUI* instance(); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // Notifies the window manager that start up has completed. | 148 // Notifies the window manager that start up has completed. |
| 149 // Normally Chromium opens a new window on startup and GTK does this | 149 // Normally Chromium opens a new window on startup and GTK does this |
| 150 // automatically. In case Chromium does not open a new window on startup, | 150 // automatically. In case Chromium does not open a new window on startup, |
| 151 // e.g. an existing browser window already exists, this should be called. | 151 // e.g. an existing browser window already exists, this should be called. |
| 152 virtual void NotifyWindowManagerStartupComplete() = 0; | 152 virtual void NotifyWindowManagerStartupComplete() = 0; |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 } // namespace views | 155 } // namespace views |
| 156 | 156 |
| 157 #endif // UI_VIEWS_LINUX_UI_LINUX_UI_H_ | 157 #endif // UI_VIEWS_LINUX_UI_LINUX_UI_H_ |
| OLD | NEW |