Chromium Code Reviews| 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..6f8031928f7e6e4fd450214c11004f671ca4a961 |
| --- /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: |
|
tfarina
2012/05/25 19:37:38
nit: indent one space.
Jun Mukai
2012/05/25 19:47:38
Done.
|
| + virtual ~ColorChooserListener() {} |
| +}; |
| + |
| +} // namespace views |
| + |
| +#endif // UI_VIEWS_COLOR_CHOOSER_COLOR_CHOOSER_LISTENER_H_ |