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

Unified Diff: ui/views/controls/menu/submenu_view.cc

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Resolving comments Created 3 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/menu/submenu_view.cc
diff --git a/ui/views/controls/menu/submenu_view.cc b/ui/views/controls/menu/submenu_view.cc
index 77795b98d52dea102524b5eac5899b043b8be57c..8dc2bd9fa588159cf4eca253b16c846292655d38 100644
--- a/ui/views/controls/menu/submenu_view.cc
+++ b/ui/views/controls/menu/submenu_view.cc
@@ -191,8 +191,8 @@ void SubmenuView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
node_data->AddState(ui::AX_STATE_VERTICAL);
}
-void SubmenuView::PaintChildren(const ui::PaintContext& context) {
- View::PaintChildren(context);
+void SubmenuView::PaintChildren(const PaintInfo& paint_info) {
+ View::PaintChildren(paint_info);
bool paint_drop_indicator = false;
if (drop_item_) {
@@ -210,7 +210,7 @@ void SubmenuView::PaintChildren(const ui::PaintContext& context) {
if (paint_drop_indicator) {
gfx::Rect bounds = CalculateDropIndicatorBounds(drop_item_, drop_position_);
- ui::PaintRecorder recorder(context, size());
+ ui::PaintRecorder recorder(paint_info.context(), size());
recorder.canvas()->FillRect(bounds, kDropIndicatorColor);
}
}

Powered by Google App Engine
This is Rietveld 408576698