libgtkui_export.patch 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Jeremy Apthorp <[email protected]>
  3. Date: Thu, 20 Sep 2018 17:48:31 -0700
  4. Subject: libgtkui_export.patch
  5. Export libgtkui symbols for the GN component build.
  6. diff --git a/chrome/browser/ui/libgtkui/gtk_util.h b/chrome/browser/ui/libgtkui/gtk_util.h
  7. index ab8707407f80dda95f0eb9ff6ff7281c7ae76195..f4a5c41e12453a6a2d6ca1e9fd1727fddb6d5809 100644
  8. --- a/chrome/browser/ui/libgtkui/gtk_util.h
  9. +++ b/chrome/browser/ui/libgtkui/gtk_util.h
  10. @@ -8,6 +8,7 @@
  11. #include <gtk/gtk.h>
  12. #include <string>
  13. +#include "base/component_export.h"
  14. #include "ui/base/glib/scoped_gobject.h"
  15. #include "ui/native_theme/native_theme.h"
  16. #include "ui/views/window/frame_buttons.h"
  17. @@ -34,11 +35,11 @@ namespace libgtkui {
  18. extern const color_utils::HSL kDefaultTintFrameIncognito;
  19. -void GtkInitFromCommandLine(const base::CommandLine& command_line);
  20. +COMPONENT_EXPORT(LIBGTKUI) void GtkInitFromCommandLine(const base::CommandLine& command_line);
  21. // Sets |dialog| as transient for |parent|, which will keep it on top and center
  22. // it above |parent|. Do nothing if |parent| is nullptr.
  23. -void SetGtkTransientForAura(GtkWidget* dialog, aura::Window* parent);
  24. +COMPONENT_EXPORT(LIBGTKUI) void SetGtkTransientForAura(GtkWidget* dialog, aura::Window* parent);
  25. // Gets the transient parent aura window for |dialog|.
  26. aura::Window* GetAuraTransientParent(GtkWidget* dialog);
  27. @@ -143,7 +144,7 @@ void ApplyCssToContext(GtkStyleContext* context, const std::string& css);
  28. // Get the 'color' property from the style context created by
  29. // GetStyleContextFromCss(|css_selector|).
  30. -SkColor GetFgColor(const std::string& css_selector);
  31. +COMPONENT_EXPORT(LIBGTKUI) SkColor GetFgColor(const std::string& css_selector);
  32. ScopedCssProvider GetCssProvider(const std::string& css);
  33. @@ -156,7 +157,7 @@ void RenderBackground(const gfx::Size& size,
  34. // Renders a background from the style context created by
  35. // GetStyleContextFromCss(|css_selector|) into a 24x24 bitmap and
  36. // returns the average color.
  37. -SkColor GetBgColor(const std::string& css_selector);
  38. +COMPONENT_EXPORT(LIBGTKUI) SkColor GetBgColor(const std::string& css_selector);
  39. // Renders the border from the style context created by
  40. // GetStyleContextFromCss(|css_selector|) into a 24x24 bitmap and