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

Unified Diff: ui/views/controls/button/vector_icon_button_delegate.h

Issue 2305933002: Update dialog close buttons to use vector icons and ripples. (Closed)
Patch Set: always good to compile Created 4 years, 3 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
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_
« no previous file with comments | « ui/views/controls/button/vector_icon_button.cc ('k') | ui/views/controls/button/vector_icon_button_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698