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

Unified Diff: chrome/browser/ui/libgtk2ui/libgtk2ui_export.h

Issue 10545037: Aura/GTK integration: Create a small stub library that can talk to GTK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sky nits Created 8 years, 6 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
Index: chrome/browser/ui/libgtk2ui/libgtk2ui_export.h
diff --git a/chrome/browser/ui/libgtk2ui/libgtk2ui_export.h b/chrome/browser/ui/libgtk2ui/libgtk2ui_export.h
new file mode 100644
index 0000000000000000000000000000000000000000..a11edb0171769c06c0433de74b95b748ec4ab3ea
--- /dev/null
+++ b/chrome/browser/ui/libgtk2ui/libgtk2ui_export.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
tfarina 2012/06/07 17:02:05 nit: s/2011/2012
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_LIBGTK2UI_LIBGTK2UI_EXPORT_H_
+#define CHROME_BROWSER_UI_LIBGTK2UI_LIBGTK2UI_EXPORT_H_
+#pragma once
+
+// Defines LIBGTK2UI_EXPORT so that functionality implemented by the aura module
tfarina 2012/06/07 17:02:05 nit: s/aura/libgtk2ui
+// can be exported to consumers.
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#error "LIBGTK2UI does not build on Windows."
+
+#else // defined(WIN32)
+#if defined(LIBGTK2UI_IMPLEMENTATION)
+#define LIBGTK2UI_EXPORT __attribute__((visibility("default")))
+#else
+#define LIBGTK2UI_EXPORT
+#endif
+#endif
+
+#else // defined(COMPONENT_BUILD)
+#define LIBGTK2UI_EXPORT
+#endif
+
+#endif // CHROME_BROWSER_UI_LIBGTK2UI_LIBGTK2UI_EXPORT_H_

Powered by Google App Engine
This is Rietveld 408576698