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

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

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Sync with ToT Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/menu/submenu_view.h ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « ui/views/controls/menu/submenu_view.h ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698