| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_OBSERVER_H_ | 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_VECTOR_ICON_DELEGATE_BUTTON_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_OBSERVER_H_ | 6 #define UI_VIEWS_CONTROLS_BUTTON_VECTOR_ICON_DELEGATE_BUTTON_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include "third_party/skia/include/core/SkColor.h" |
| 9 | 9 #include "ui/views/controls/button/button.h" |
| 10 #include "ui/views/views_export.h" | 10 #include "ui/views/views_export.h" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 | 13 |
| 14 class VIEWS_EXPORT X11DesktopHandlerObserver { | 14 // A ButtonListener that also provides a color to use for drawing an icon. |
| 15 class VIEWS_EXPORT VectorIconButtonDelegate : public ButtonListener { |
| 15 public: | 16 public: |
| 16 // Called when the (platform-specific) workspace ID changes to | 17 virtual SkColor GetVectorIconBaseColor() const; |
| 17 // |new_workspace|. | |
| 18 virtual void OnWorkspaceChanged(const std::string& new_workspace) = 0; | |
| 19 | 18 |
| 20 protected: | 19 protected: |
| 21 virtual ~X11DesktopHandlerObserver() {} | 20 ~VectorIconButtonDelegate() override {} |
| 22 }; | 21 }; |
| 23 | 22 |
| 24 } // namespace views | 23 } // namespace views |
| 25 | 24 |
| 26 #endif // UI_DISPLAY_DESKTOP_OBSERVER_H_ | 25 #endif // UI_VIEWS_CONTROLS_BUTTON_VECTOR_ICON_BUTTON_DELEGATE_H_ |
| OLD | NEW |