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

Unified Diff: ui/gfx/color_profile.h

Issue 10448110: Adds monitor ICC profile support for win and mac (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix reading length from small string 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: 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..37d121bcd4fcb042e58942bd57ba5acccf5fb627
--- /dev/null
+++ b/ui/gfx/color_profile.h
@@ -0,0 +1,28 @@
+// 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"
+
+namespace gfx {
+
+// Loads the monitor color space if available.
+class UI_EXPORT ColorProfile {
Ben Goodger (Google) 2012/06/29 16:11:40 Can these just be functions in the gfx namespace r
tpayne 2012/07/02 19:22:32 Done.
+ public:
+ static void GetColorProfile(gfx::NativeViewId, std::vector<char>* profile);
+ private:
+ static void ReadProfile(gfx::NativeViewId, std::vector<char>* profile);
+};
+
+} // namespace gfx
+
+#endif // UI_GFX_COLOR_PROFILE_H_
+

Powered by Google App Engine
This is Rietveld 408576698