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

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

Issue 392013005: [#1] Delete reduntdant 19 header files in ui/gfx (8 of 19 by this) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sorted includes Created 6 years, 5 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
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/insets.h" 7 #include "ui/gfx/geometry/insets.h"
8 #include "ui/views/controls/button/label_button_border.h" 8 #include "ui/views/controls/button/label_button_border.h"
9 #include "ui/views/painter.h" 9 #include "ui/views/painter.h"
10 10
11 BackButton::BackButton(views::ButtonListener* listener, 11 BackButton::BackButton(views::ButtonListener* listener,
12 ui::MenuModel* model) 12 ui::MenuModel* model)
13 : ToolbarButton(listener, model), 13 : ToolbarButton(listener, model),
14 margin_leading_(0) {} 14 margin_leading_(0) {}
15 15
16 BackButton::~BackButton() {} 16 BackButton::~BackButton() {}
17 17
(...skipping 25 matching lines...) Expand all
43 43
44 // Adjust border insets to follow the margin change, 44 // Adjust border insets to follow the margin change,
45 // which will be reflected in where the border is painted 45 // which will be reflected in where the border is painted
46 // through |GetThemePaintRect|. 46 // through |GetThemePaintRect|.
47 const gfx::Insets insets(border->GetInsets()); 47 const gfx::Insets insets(border->GetInsets());
48 border->set_insets(gfx::Insets(insets.top(), insets.left() + margin_leading_, 48 border->set_insets(gfx::Insets(insets.top(), insets.left() + margin_leading_,
49 insets.bottom(), insets.right())); 49 insets.bottom(), insets.right()));
50 50
51 return border.Pass(); 51 return border.Pass();
52 } 52 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698