OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_VIEWS_COLOR_CHOOSER_COLOR_CHOOSER_LISTENER_H_ |
| 6 #define UI_VIEWS_COLOR_CHOOSER_COLOR_CHOOSER_LISTENER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "third_party/skia/include/core/SkColor.h" |
| 10 #include "ui/views/views_export.h" |
| 11 |
| 12 namespace views { |
| 13 |
| 14 // An interface implemented by a Listener object wishing to know about the |
| 15 // the results from the color chooser dialog. |
| 16 class VIEWS_EXPORT ColorChooserListener { |
| 17 public: |
| 18 virtual void OnColorChosen(SkColor color) = 0; |
| 19 virtual void OnColorChooserDialogClosed() = 0; |
| 20 |
| 21 protected: |
| 22 virtual ~ColorChooserListener() {} |
| 23 }; |
| 24 |
| 25 } // namespace views |
| 26 |
| 27 #endif // UI_VIEWS_COLOR_CHOOSER_COLOR_CHOOSER_LISTENER_H_ |
OLD | NEW |