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

Unified Diff: views/controls/menu/menu_scroll_view_container.cc

Issue 2741004: Makes it so child views of menuitemview can be traversed with the (Closed)
Patch Set: Tweaks Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: views/controls/menu/menu_scroll_view_container.cc
diff --git a/views/controls/menu/menu_scroll_view_container.cc b/views/controls/menu/menu_scroll_view_container.cc
index ef7a8abec40ea818e0c06a1b5f52e6501cb304c5..b538f5b5d8264fe438a1a8f85b488f2ebb79c6e1 100644
--- a/views/controls/menu/menu_scroll_view_container.cc
+++ b/views/controls/menu/menu_scroll_view_container.cc
@@ -178,7 +178,12 @@ MenuScrollViewContainer::MenuScrollViewContainer(SubmenuView* content_view) {
SubmenuView::kSubmenuBorderSize));
}
-void MenuScrollViewContainer::Paint(gfx::Canvas* canvas) {
+void MenuScrollViewContainer::PaintBackground(gfx::Canvas* canvas) {
+ if (background()) {
+ View::PaintBackground(canvas);
+ return;
+ }
+
#if defined(OS_WIN)
HDC dc = canvas->beginPlatformPaint();
RECT bounds = {0, 0, width(), height()};

Powered by Google App Engine
This is Rietveld 408576698