2018-10-24 18:24:11 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-09-21 00:30:26 +00:00
|
|
|
From: Jeremy Apthorp <nornagon@nornagon.net>
|
|
|
|
Date: Thu, 20 Sep 2018 17:48:31 -0700
|
|
|
|
Subject: libgtkui_export.patch
|
|
|
|
|
|
|
|
Export libgtkui symbols for the GN component build.
|
|
|
|
|
2018-09-14 05:02:16 +00:00
|
|
|
diff --git a/chrome/browser/ui/libgtkui/gtk_util.h b/chrome/browser/ui/libgtkui/gtk_util.h
|
2019-12-11 00:22:35 +00:00
|
|
|
index ab8707407f80dda95f0eb9ff6ff7281c7ae76195..f4a5c41e12453a6a2d6ca1e9fd1727fddb6d5809 100644
|
2018-09-14 05:02:16 +00:00
|
|
|
--- a/chrome/browser/ui/libgtkui/gtk_util.h
|
|
|
|
+++ b/chrome/browser/ui/libgtkui/gtk_util.h
|
2019-10-28 22:12:35 +00:00
|
|
|
@@ -8,6 +8,7 @@
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
+#include "base/component_export.h"
|
2018-09-14 05:02:16 +00:00
|
|
|
#include "ui/base/glib/scoped_gobject.h"
|
|
|
|
#include "ui/native_theme/native_theme.h"
|
|
|
|
#include "ui/views/window/frame_buttons.h"
|
2019-10-28 22:12:35 +00:00
|
|
|
@@ -34,11 +35,11 @@ namespace libgtkui {
|
2019-01-12 01:00:43 +00:00
|
|
|
|
|
|
|
extern const color_utils::HSL kDefaultTintFrameIncognito;
|
2018-09-14 05:02:16 +00:00
|
|
|
|
|
|
|
-void GtkInitFromCommandLine(const base::CommandLine& command_line);
|
2019-10-28 22:12:35 +00:00
|
|
|
+COMPONENT_EXPORT(LIBGTKUI) void GtkInitFromCommandLine(const base::CommandLine& command_line);
|
2018-09-14 05:02:16 +00:00
|
|
|
|
|
|
|
// 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);
|
2019-10-28 22:12:35 +00:00
|
|
|
+COMPONENT_EXPORT(LIBGTKUI) void SetGtkTransientForAura(GtkWidget* dialog, aura::Window* parent);
|
2018-09-14 05:02:16 +00:00
|
|
|
|
2019-01-12 01:00:43 +00:00
|
|
|
// Gets the transient parent aura window for |dialog|.
|
|
|
|
aura::Window* GetAuraTransientParent(GtkWidget* dialog);
|
2019-10-28 22:12:35 +00:00
|
|
|
@@ -143,7 +144,7 @@ void ApplyCssToContext(GtkStyleContext* context, const std::string& css);
|
2018-11-30 17:28:45 +00:00
|
|
|
|
|
|
|
// Get the 'color' property from the style context created by
|
|
|
|
// GetStyleContextFromCss(|css_selector|).
|
|
|
|
-SkColor GetFgColor(const std::string& css_selector);
|
2019-10-28 22:12:35 +00:00
|
|
|
+COMPONENT_EXPORT(LIBGTKUI) SkColor GetFgColor(const std::string& css_selector);
|
2018-11-30 17:28:45 +00:00
|
|
|
|
|
|
|
ScopedCssProvider GetCssProvider(const std::string& css);
|
|
|
|
|
2019-10-28 22:12:35 +00:00
|
|
|
@@ -156,7 +157,7 @@ void RenderBackground(const gfx::Size& size,
|
2018-10-04 06:25:09 +00:00
|
|
|
// 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);
|
2019-10-28 22:12:35 +00:00
|
|
|
+COMPONENT_EXPORT(LIBGTKUI) SkColor GetBgColor(const std::string& css_selector);
|
2018-10-24 18:24:11 +00:00
|
|
|
|
2018-10-04 06:25:09 +00:00
|
|
|
// Renders the border from the style context created by
|
|
|
|
// GetStyleContextFromCss(|css_selector|) into a 24x24 bitmap and
|