Index: ui/gfx/color_profile.h |
diff --git a/ui/gfx/color_profile.h b/ui/gfx/color_profile.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0433d83ac85cd4567ff6fd5e5243f90679139349 |
--- /dev/null |
+++ b/ui/gfx/color_profile.h |
@@ -0,0 +1,27 @@ |
+// Copyright (c) 2012 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 UI_GFX_COLOR_PROFILE_H_ |
+#define UI_GFX_COLOR_PROFILE_H_ |
+#pragma once |
+ |
+#include <map> |
+#include <vector> |
+ |
+#include "ui/base/ui_export.h" |
+#include "ui/gfx/native_widget_types.h" |
+ |
+#define MIN_PROFILE_LENGTH 128 |
Ben Goodger (Google)
2012/07/09 15:56:46
We don't use #defines in chrome code, instead use
tpayne
2012/07/13 22:24:40
Done.
|
+#define MAX_PROFILE_LENGTH (4 * 1000 * 1000) |
+ |
+namespace gfx { |
+ |
+// Loads the monitor color space if available. |
+UI_EXPORT void GetColorProfile(gfx::NativeViewId, std::vector<char>* profile); |
Ben Goodger (Google)
2012/07/09 15:56:46
you never seem to use parent_window here. what's i
tpayne
2012/07/13 22:24:40
It's for future use, to support multiple monitors.
|
+void ReadColorProfile(gfx::NativeViewId, std::vector<char>* profile); |
+ |
+} // namespace gfx |
+ |
+#endif // UI_GFX_COLOR_PROFILE_H_ |
+ |