| Index: ui/views/controls/button/vector_icon_button_delegate.h
|
| diff --git a/ui/views/widget/desktop_aura/x11_desktop_handler_observer.h b/ui/views/controls/button/vector_icon_button_delegate.h
|
| similarity index 33%
|
| copy from ui/views/widget/desktop_aura/x11_desktop_handler_observer.h
|
| copy to ui/views/controls/button/vector_icon_button_delegate.h
|
| index 252ca21334314f61aa6ff32ddda6e0c7ea088d0e..e4cccaa6790506ac8d34b31718faa0bb77b4695b 100644
|
| --- a/ui/views/widget/desktop_aura/x11_desktop_handler_observer.h
|
| +++ b/ui/views/controls/button/vector_icon_button_delegate.h
|
| @@ -2,25 +2,24 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_OBSERVER_H_
|
| -#define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_OBSERVER_H_
|
| -
|
| -#include <string>
|
| +#ifndef UI_VIEWS_CONTROLS_BUTTON_VECTOR_ICON_DELEGATE_BUTTON_H_
|
| +#define UI_VIEWS_CONTROLS_BUTTON_VECTOR_ICON_DELEGATE_BUTTON_H_
|
|
|
| +#include "third_party/skia/include/core/SkColor.h"
|
| +#include "ui/views/controls/button/button.h"
|
| #include "ui/views/views_export.h"
|
|
|
| namespace views {
|
|
|
| -class VIEWS_EXPORT X11DesktopHandlerObserver {
|
| +// A ButtonListener that also provides a color to use for drawing an icon.
|
| +class VIEWS_EXPORT VectorIconButtonDelegate : public ButtonListener {
|
| public:
|
| - // Called when the (platform-specific) workspace ID changes to
|
| - // |new_workspace|.
|
| - virtual void OnWorkspaceChanged(const std::string& new_workspace) = 0;
|
| + virtual SkColor GetVectorIconBaseColor() const;
|
|
|
| protected:
|
| - virtual ~X11DesktopHandlerObserver() {}
|
| + ~VectorIconButtonDelegate() override {}
|
| };
|
|
|
| } // namespace views
|
|
|
| -#endif // UI_DISPLAY_DESKTOP_OBSERVER_H_
|
| +#endif // UI_VIEWS_CONTROLS_BUTTON_VECTOR_ICON_BUTTON_DELEGATE_H_
|
|
|