| 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 #ifndef BASE_NIX_XDG_UTIL_H_ | 5 #ifndef BASE_NIX_XDG_UTIL_H_ |
| 6 #define BASE_NIX_XDG_UTIL_H_ | 6 #define BASE_NIX_XDG_UTIL_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 // XDG refers to http://en.wikipedia.org/wiki/Freedesktop.org . | 8 // XDG refers to http://en.wikipedia.org/wiki/Freedesktop.org . |
| 10 // This file contains utilities found across free desktop environments. | 9 // This file contains utilities found across free desktop environments. |
| 11 // | 10 // |
| 12 // TODO(brettw) this file should be in app/x11, but is currently used by | 11 // TODO(brettw) this file should be in app/x11, but is currently used by |
| 13 // net. We should have a net API to allow the embedder to specify the behavior | 12 // net. We should have a net API to allow the embedder to specify the behavior |
| 14 // that it uses XDG for, and then move this file. | 13 // that it uses XDG for, and then move this file. |
| 15 | 14 |
| 16 #include "base/base_export.h" | 15 #include "base/base_export.h" |
| 17 | 16 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // Return a string representation of the given desktop environment. | 65 // Return a string representation of the given desktop environment. |
| 67 // May return NULL in the case of DESKTOP_ENVIRONMENT_OTHER. | 66 // May return NULL in the case of DESKTOP_ENVIRONMENT_OTHER. |
| 68 BASE_EXPORT const char* GetDesktopEnvironmentName(DesktopEnvironment env); | 67 BASE_EXPORT const char* GetDesktopEnvironmentName(DesktopEnvironment env); |
| 69 // Convenience wrapper that calls GetDesktopEnvironment() first. | 68 // Convenience wrapper that calls GetDesktopEnvironment() first. |
| 70 BASE_EXPORT const char* GetDesktopEnvironmentName(Environment* env); | 69 BASE_EXPORT const char* GetDesktopEnvironmentName(Environment* env); |
| 71 | 70 |
| 72 } // namespace nix | 71 } // namespace nix |
| 73 } // namespace base | 72 } // namespace base |
| 74 | 73 |
| 75 #endif // BASE_NIX_XDG_UTIL_H_ | 74 #endif // BASE_NIX_XDG_UTIL_H_ |
| OLD | NEW |