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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_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: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
index 0dfe4965a53a404d6429e3610869d1ab668d6a41..b84bd48e1fda64d24adb45a895af2311763171bd 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -1050,8 +1050,8 @@ void BookmarkBarView::ViewHierarchyChanged(
}
}
-void BookmarkBarView::PaintChildren(const ui::PaintContext& context) {
- View::PaintChildren(context);
+void BookmarkBarView::PaintChildren(const views::PaintInfo& paint_info) {
+ View::PaintChildren(paint_info);
if (drop_info_.get() && drop_info_->valid &&
drop_info_->location.operation != 0 && drop_info_->location.index != -1 &&
@@ -1082,7 +1082,7 @@ void BookmarkBarView::PaintChildren(const ui::PaintContext& context) {
gfx::Rect indicator_bounds = GetMirroredRect(
gfx::Rect(x - kDropIndicatorWidth / 2, y, kDropIndicatorWidth, h));
- ui::PaintRecorder recorder(context, size());
+ ui::PaintRecorder recorder(paint_info.context(), size());
// TODO(sky/glen): make me pretty!
recorder.canvas()->FillRect(
indicator_bounds,

Powered by Google App Engine
This is Rietveld 408576698