OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/gtk/unity_service.h" | 5 #include "chrome/browser/ui/gtk/unity_service.h" |
6 | 6 |
7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include "apps/shell_integration_linux.h" |
10 #include "base/environment.h" | 11 #include "base/environment.h" |
11 #include "base/nix/xdg_util.h" | 12 #include "base/nix/xdg_util.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/browser/shell_integration_linux.h" | |
14 | 14 |
15 // Unity data typedefs. | 15 // Unity data typedefs. |
16 typedef struct _UnityInspector UnityInspector; | 16 typedef struct _UnityInspector UnityInspector; |
17 typedef UnityInspector* (*unity_inspector_get_default_func)(void); | 17 typedef UnityInspector* (*unity_inspector_get_default_func)(void); |
18 typedef gboolean (*unity_inspector_get_unity_running_func) | 18 typedef gboolean (*unity_inspector_get_unity_running_func) |
19 (UnityInspector* self); | 19 (UnityInspector* self); |
20 | 20 |
21 typedef struct _UnityLauncherEntry UnityLauncherEntry; | 21 typedef struct _UnityLauncherEntry UnityLauncherEntry; |
22 typedef UnityLauncherEntry* (*unity_launcher_entry_get_for_desktop_id_func) | 22 typedef UnityLauncherEntry* (*unity_launcher_entry_get_for_desktop_id_func) |
23 (const gchar* desktop_id); | 23 (const gchar* desktop_id); |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 void SetProgressFraction(float percentage) { | 130 void SetProgressFraction(float percentage) { |
131 EnsureMethodsLoaded(); | 131 EnsureMethodsLoaded(); |
132 if (chrome_entry && entry_set_progress && entry_set_progress_visible) { | 132 if (chrome_entry && entry_set_progress && entry_set_progress_visible) { |
133 entry_set_progress(chrome_entry, percentage); | 133 entry_set_progress(chrome_entry, percentage); |
134 entry_set_progress_visible(chrome_entry, | 134 entry_set_progress_visible(chrome_entry, |
135 percentage > 0.0 && percentage < 1.0); | 135 percentage > 0.0 && percentage < 1.0); |
136 } | 136 } |
137 } | 137 } |
138 | 138 |
139 } // namespace unity | 139 } // namespace unity |
OLD | NEW |