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

Side by Side Diff: views/controls/menu/menu_separator_gtk.cc

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "views/controls/menu/menu_separator.h" 5 #include "views/controls/menu/menu_separator.h"
6 6
7 #include "app/gfx/canvas.h" 7 #include "gfx/canvas.h"
8 #include "third_party/skia/include/core/SkColor.h" 8 #include "third_party/skia/include/core/SkColor.h"
9 #include "views/controls/menu/menu_config.h" 9 #include "views/controls/menu/menu_config.h"
10 10
11 namespace views { 11 namespace views {
12 12
13 static const SkColor kSeparatorColor = SkColorSetARGB(50, 00, 00, 00); 13 static const SkColor kSeparatorColor = SkColorSetARGB(50, 00, 00, 00);
14 14
15 void MenuSeparator::Paint(gfx::Canvas* canvas) { 15 void MenuSeparator::Paint(gfx::Canvas* canvas) {
16 canvas->DrawLineInt(kSeparatorColor, 0, height() / 2, width(), height() / 2); 16 canvas->DrawLineInt(kSeparatorColor, 0, height() / 2, width(), height() / 2);
17 } 17 }
18 18
19 gfx::Size MenuSeparator::GetPreferredSize() { 19 gfx::Size MenuSeparator::GetPreferredSize() {
20 return gfx::Size(10, // Just in case we're the only item in a menu. 20 return gfx::Size(10, // Just in case we're the only item in a menu.
21 MenuConfig::instance().separator_height); 21 MenuConfig::instance().separator_height);
22 } 22 }
23 23
24 } // namespace views 24 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/menu/menu_scroll_view_container.cc ('k') | views/controls/menu/menu_separator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698