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

Unified Diff: ui/views/color_chooser/color_chooser_listener.h

Issue 10442020: Initial implementation of ColorChooser for Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « chrome/browser/ui/views/color_chooser_win.cc ('k') | ui/views/color_chooser/color_chooser_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/color_chooser/color_chooser_listener.h
diff --git a/ui/views/color_chooser/color_chooser_listener.h b/ui/views/color_chooser/color_chooser_listener.h
new file mode 100644
index 0000000000000000000000000000000000000000..2587d03c68b10dd6babfc1b72dcefcf315c96084
--- /dev/null
+++ b/ui/views/color_chooser/color_chooser_listener.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_VIEWS_COLOR_CHOOSER_COLOR_CHOOSER_LISTENER_H_
+#define UI_VIEWS_COLOR_CHOOSER_COLOR_CHOOSER_LISTENER_H_
+#pragma once
+
+#include "third_party/skia/include/core/SkColor.h"
+#include "ui/views/views_export.h"
+
+namespace views {
+
+// An interface implemented by a Listener object wishing to know about the
+// the results from the color chooser dialog.
+class VIEWS_EXPORT ColorChooserListener {
+ public:
+ virtual void OnColorChosen(SkColor color) = 0;
+ virtual void OnColorChooserDialogClosed() = 0;
+
+ protected:
+ virtual ~ColorChooserListener() {}
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_COLOR_CHOOSER_COLOR_CHOOSER_LISTENER_H_
« no previous file with comments | « chrome/browser/ui/views/color_chooser_win.cc ('k') | ui/views/color_chooser/color_chooser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698