| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_UI_VIEWS_BAR_CONTROL_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BAR_CONTROL_BUTTON_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_BAR_CONTROL_BUTTON_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BAR_CONTROL_BUTTON_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 const base::Callback<SkColor(void)>& get_text_color_callback); | 32 const base::Callback<SkColor(void)>& get_text_color_callback); |
| 33 | 33 |
| 34 // views::ImageButton: | 34 // views::ImageButton: |
| 35 void OnThemeChanged() override; | 35 void OnThemeChanged() override; |
| 36 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; | 36 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 gfx::VectorIconId id_; | 39 gfx::VectorIconId id_; |
| 40 base::Callback<SkColor(void)> get_text_color_callback_; | 40 base::Callback<SkColor(void)> get_text_color_callback_; |
| 41 | 41 |
| 42 // Controls the visual feedback for the button state. | |
| 43 std::unique_ptr<views::InkDropDelegate> ink_drop_delegate_; | |
| 44 | |
| 45 DISALLOW_COPY_AND_ASSIGN(BarControlButton); | 42 DISALLOW_COPY_AND_ASSIGN(BarControlButton); |
| 46 }; | 43 }; |
| 47 | 44 |
| 48 #endif // CHROME_BROWSER_UI_VIEWS_BAR_CONTROL_BUTTON_H_ | 45 #endif // CHROME_BROWSER_UI_VIEWS_BAR_CONTROL_BUTTON_H_ |
| OLD | NEW |