Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2766)

Unified Diff: base/nix/mime_util_xdg.h

Issue 12230026: linux: Both gtk and the aura port should set the icon theme name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for thestig Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/nix/mime_util_xdg.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/nix/mime_util_xdg.h
diff --git a/base/nix/mime_util_xdg.h b/base/nix/mime_util_xdg.h
index 79dba89d1dfef1f91113785e2f631656361f9b3e..79eb782e60aa0549ed9d618909e44b397114fef5 100644
--- a/base/nix/mime_util_xdg.h
+++ b/base/nix/mime_util_xdg.h
@@ -25,12 +25,10 @@ BASE_EXPORT std::string GetFileMimeType(const FilePath& filepath);
// Get the mime type for a byte vector.
BASE_EXPORT std::string GetDataMimeType(const std::string& data);
-#if defined(TOOLKIT_GTK)
-// This detects the current GTK theme by calling gtk_settings_get_default().
-// It should only be executed on the UI thread and must be called before
-// GetMimeIcon().
-BASE_EXPORT void DetectGtkTheme();
-#endif
+// Sets the current icon theme that we've detected from the desktop
+// environment. Currently only works when we believe we're in a GTK
+// environment.
+BASE_EXPORT void SetIconThemeName(const std::string& name);
// Gets the file name for an icon given the mime type and icon pixel size.
// Where an icon is a square image of |size| x |size|.
« no previous file with comments | « no previous file | base/nix/mime_util_xdg.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698