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

Side by Side Diff: ui/message_center/views/padded_button.cc

Issue 467193003: ui: Remove unneeded includes of grit/ui_resources.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ui/message_center/views/notification_view.cc ('k') | ui/shell_dialogs/select_file_dialog.cc » ('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 "ui/message_center/views/padded_button.h" 5 #include "ui/message_center/views/padded_button.h"
6 6
7 #include "grit/ui_resources.h"
8 #include "ui/base/resource/resource_bundle.h" 7 #include "ui/base/resource/resource_bundle.h"
9 #include "ui/gfx/canvas.h" 8 #include "ui/gfx/canvas.h"
10 #include "ui/message_center/message_center_style.h" 9 #include "ui/message_center/message_center_style.h"
11 #include "ui/views/controls/button/image_button.h" 10 #include "ui/views/controls/button/image_button.h"
12 #include "ui/views/painter.h" 11 #include "ui/views/painter.h"
13 12
14 namespace message_center { 13 namespace message_center {
15 14
16 PaddedButton::PaddedButton(views::ButtonListener* listener) 15 PaddedButton::PaddedButton(views::ButtonListener* listener)
17 : views::ImageButton(listener) { 16 : views::ImageButton(listener) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 87
89 if (padding_.top() == 0 && padding_.bottom() == 0) 88 if (padding_.top() == 0 && padding_.bottom() == 0)
90 offset.set_y((bounds.height() - image.height()) / 2); // Middle align. 89 offset.set_y((bounds.height() - image.height()) / 2); // Middle align.
91 else if (padding_.bottom() > 0) 90 else if (padding_.bottom() > 0)
92 offset.set_y(bounds.height() - image.height()); // Bottom align. 91 offset.set_y(bounds.height() - image.height()); // Bottom align.
93 92
94 return bounds.origin() + offset; 93 return bounds.origin() + offset;
95 } 94 }
96 95
97 } // namespace message_center 96 } // namespace message_center
OLDNEW
« no previous file with comments | « ui/message_center/views/notification_view.cc ('k') | ui/shell_dialogs/select_file_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698