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

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 diff delta. Created 5 years 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/bar_control_button.cc » ('j') | ui/views/animation/ink_drop_host.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0be367c6b5b9a5cd6757897ddbf3e8c0a46fb6e0 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,10 +36,9 @@ class BarControlButton : public views::ImageButton, public views::InkDropHost {
bool OnMousePressed(const ui::MouseEvent& event) override;
private:
- // views::InkDropHost:
+ // views::ImageButton:
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/animation/ink_drop_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698