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