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

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

Issue 1550443002: Pushed InkDropHost inheritence up to CustomButton. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with master 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
« no previous file with comments | « chrome/browser/ui/views/bar_control_button.h ('k') | chrome/browser/ui/views/toolbar/app_menu_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/bar_control_button.cc
diff --git a/chrome/browser/ui/views/bar_control_button.cc b/chrome/browser/ui/views/bar_control_button.cc
index 82bdce220a34c859a320378fdda10b6cecbc6d54..cb76a42538f7117dd7876e76e26b4d185b5403a3 100644
--- a/chrome/browser/ui/views/bar_control_button.cc
+++ b/chrome/browser/ui/views/bar_control_button.cc
@@ -61,25 +61,6 @@ void BarControlButton::OnNativeThemeChanged(const ui::NativeTheme* theme) {
OnThemeChanged();
}
-void BarControlButton::AddInkDropLayer(ui::Layer* ink_drop_layer) {
- // TODO(estade|tdanderson): The ink drop layer should be positioned behind
- // the button's image.
- SetPaintToLayer(true);
- SetFillsBoundsOpaquely(false);
- layer()->Add(ink_drop_layer);
- layer()->StackAtBottom(ink_drop_layer);
-}
-
-void BarControlButton::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {
- layer()->Remove(ink_drop_layer);
- SetFillsBoundsOpaquely(true);
- SetPaintToLayer(false);
-}
-
-gfx::Point BarControlButton::CalculateInkDropCenter() const {
- return GetLocalBounds().CenterPoint();
-}
-
bool BarControlButton::OnMousePressed(const ui::MouseEvent& event) {
if (IsTriggerableEvent(event))
ink_drop_delegate()->OnAction(views::InkDropState::ACTION_PENDING);
« no previous file with comments | « chrome/browser/ui/views/bar_control_button.h ('k') | chrome/browser/ui/views/toolbar/app_menu_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698