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

Unified Diff: device/power_monitor/power_monitor_export.h

Issue 2460823002: Decouple Power Monitor from //content. (Closed)
Patch Set: code rebase Created 4 years, 1 month 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 | « device/power_monitor/OWNERS ('k') | device/power_monitor/power_monitor_message_broadcaster.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/power_monitor/power_monitor_export.h
diff --git a/device/power_monitor/power_monitor_export.h b/device/power_monitor/power_monitor_export.h
new file mode 100644
index 0000000000000000000000000000000000000000..ff6e367c57bde889e42cf012b1235896205e63dd
--- /dev/null
+++ b/device/power_monitor/power_monitor_export.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef DEVICE_POWER_MONITOR_POWER_MONITOR_EXPORT_H_
+#define DEVICE_POWER_MONITOR_POWER_MONITOR_EXPORT_H_
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(DEVICE_POWER_MONITOR_IMPLEMENTATION)
+#define DEVICE_POWER_MONITOR_EXPORT __declspec(dllexport)
+#else
+#define DEVICE_POWER_MONITOR_EXPORT __declspec(dllimport)
+#endif // defined(DEVICE_POWER_MONITOR_IMPLEMENTATION)
+
+#else // defined(WIN32)
+#if defined(DEVICE_POWER_MONITOR_IMPLEMENTATION)
+#define DEVICE_POWER_MONITOR_EXPORT __attribute__((visibility("default")))
+#else
+#define DEVICE_POWER_MONITOR_EXPORT
+#endif
+#endif
+
+#else // defined(COMPONENT_BUILD)
+#define DEVICE_POWER_MONITOR_EXPORT
+#endif
+
+#endif // DEVICE_POWER_MONITOR_POWER_MONITOR_EXPORT_H_
« no previous file with comments | « device/power_monitor/OWNERS ('k') | device/power_monitor/power_monitor_message_broadcaster.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698