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

Side by Side Diff: chrome/browser/ui/views/toolbar/back_button.cc

Issue 1937353002: Rename of InkDropAnimationController classes to InkDrop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed tdanderson@ comments from patch set 2. Created 4 years, 7 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
« no previous file with comments | « no previous file | ui/views/animation/button_ink_drop_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/browser/ui/views/toolbar/back_button.h" 5 #include "chrome/browser/ui/views/toolbar/back_button.h"
6 6
7 #include "ui/gfx/geometry/insets.h" 7 #include "ui/gfx/geometry/insets.h"
8 #include "ui/views/animation/ink_drop_animation_controller.h" 8 #include "ui/views/animation/ink_drop.h"
9 #include "ui/views/controls/button/label_button_border.h" 9 #include "ui/views/controls/button/label_button_border.h"
10 #include "ui/views/painter.h" 10 #include "ui/views/painter.h"
11 11
12 BackButton::BackButton(Profile* profile, 12 BackButton::BackButton(Profile* profile,
13 views::ButtonListener* listener, 13 views::ButtonListener* listener,
14 ui::MenuModel* model) 14 ui::MenuModel* model)
15 : ToolbarButton(profile, listener, model), margin_leading_(0) {} 15 : ToolbarButton(profile, listener, model), margin_leading_(0) {}
16 16
17 BackButton::~BackButton() {} 17 BackButton::~BackButton() {}
18 18
(...skipping 29 matching lines...) Expand all
48 return border; 48 return border;
49 } 49 }
50 50
51 gfx::Rect BackButton::GetThemePaintRect() const { 51 gfx::Rect BackButton::GetThemePaintRect() const {
52 gfx::Rect rect(LabelButton::GetThemePaintRect()); 52 gfx::Rect rect(LabelButton::GetThemePaintRect());
53 const bool is_rtl = base::i18n::IsRTL(); 53 const bool is_rtl = base::i18n::IsRTL();
54 rect.Inset(is_rtl ? 0 : margin_leading_, 0, is_rtl ? margin_leading_ : 0, 0); 54 rect.Inset(is_rtl ? 0 : margin_leading_, 0, is_rtl ? margin_leading_ : 0, 0);
55 return rect; 55 return rect;
56 } 56 }
57 57
OLDNEW
« no previous file with comments | « no previous file | ui/views/animation/button_ink_drop_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698