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

Unified Diff: chrome/browser/ui/views/bar_control_button.h

Issue 1550443002: Pushed InkDropHost inheritence up to CustomButton. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed whitespace in toolbar_action_view.h Created 4 years, 11 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: chrome/browser/ui/views/bar_control_button.h
diff --git a/chrome/browser/ui/views/bar_control_button.h b/chrome/browser/ui/views/bar_control_button.h
index f3d045576308221926e50e9f46507e9e568e02d5..ae04e079c619879164457f5c495065da29f50c52 100644
--- a/chrome/browser/ui/views/bar_control_button.h
+++ b/chrome/browser/ui/views/bar_control_button.h
@@ -8,7 +8,6 @@
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
-#include "ui/views/animation/ink_drop_host.h"
#include "ui/views/controls/button/image_button.h"
namespace gfx {
@@ -21,7 +20,7 @@ class InkDropDelegate;
// A class for buttons that control bars (find bar, download shelf, etc.). The
// button has an image and no text.
-class BarControlButton : public views::ImageButton, public views::InkDropHost {
+class BarControlButton : public views::ImageButton {
public:
explicit BarControlButton(views::ButtonListener* listener);
~BarControlButton() override;
@@ -37,11 +36,6 @@ class BarControlButton : public views::ImageButton, public views::InkDropHost {
bool OnMousePressed(const ui::MouseEvent& event) override;
private:
- // views::InkDropHost:
- void AddInkDropLayer(ui::Layer* ink_drop_layer) override;
- void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override;
- gfx::Point CalculateInkDropCenter() const override;
-
gfx::VectorIconId id_;
base::Callback<SkColor(void)> get_text_color_callback_;
« no previous file with comments | « no previous file | chrome/browser/ui/views/bar_control_button.cc » ('j') | ui/views/controls/button/custom_button.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698