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

Side by Side 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 unified diff | Download patch
OLDNEW
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_
OLDNEW
« 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