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

Side by Side Diff: views/controls/menu/menu_scroll_view_container.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
« no previous file with comments | « views/controls/menu/menu_item_view_win.cc ('k') | views/controls/menu/menu_separator_gtk.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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_scroll_view_container.h" 5 #include "views/controls/menu/menu_scroll_view_container.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <uxtheme.h> 9 #include <uxtheme.h>
10 #include <Vssym32.h> 10 #include <Vssym32.h>
11 #endif 11 #endif
12 12
13 #include "app/gfx/canvas.h" 13 #include "gfx/canvas.h"
14 #include "gfx/color_utils.h" 14 #include "gfx/color_utils.h"
15 #include "views/border.h" 15 #include "views/border.h"
16 #include "views/controls/menu/menu_config.h" 16 #include "views/controls/menu/menu_config.h"
17 #include "views/controls/menu/menu_controller.h" 17 #include "views/controls/menu/menu_controller.h"
18 #include "views/controls/menu/menu_item_view.h" 18 #include "views/controls/menu/menu_item_view.h"
19 #include "views/controls/menu/submenu_view.h" 19 #include "views/controls/menu/submenu_view.h"
20 20
21 #if defined(OS_WIN) 21 #if defined(OS_WIN)
22 #include "gfx/native_theme_win.h" 22 #include "gfx/native_theme_win.h"
23 #endif 23 #endif
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 } 225 }
226 226
227 gfx::Size MenuScrollViewContainer::GetPreferredSize() { 227 gfx::Size MenuScrollViewContainer::GetPreferredSize() {
228 gfx::Size prefsize = scroll_view_->GetContents()->GetPreferredSize(); 228 gfx::Size prefsize = scroll_view_->GetContents()->GetPreferredSize();
229 gfx::Insets insets = GetInsets(); 229 gfx::Insets insets = GetInsets();
230 prefsize.Enlarge(insets.width(), insets.height()); 230 prefsize.Enlarge(insets.width(), insets.height());
231 return prefsize; 231 return prefsize;
232 } 232 }
233 233
234 } // namespace views 234 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/menu/menu_item_view_win.cc ('k') | views/controls/menu/menu_separator_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698