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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc

Issue 1053143002: Make View::Paint use ui::PaintRecorder to access PaintContext's canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: paintrecorder: . Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
index 3fe867e227184fb7353543f1437d20a1b4876a2b..7d092de0e900328016fb6d33ab3ad0a53b14f841 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
@@ -12,6 +12,7 @@
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "chrome/browser/ui/views/omnibox/omnibox_result_view.h"
#include "ui/base/theme_provider.h"
+#include "ui/compositor/paint_context.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/path.h"
@@ -414,7 +415,7 @@ void OmniboxPopupContentsView::OnPaint(gfx::Canvas* canvas) {
width(), bottom_shadow_->height());
}
-void OmniboxPopupContentsView::PaintChildren(const PaintContext& context) {
+void OmniboxPopupContentsView::PaintChildren(const ui::PaintContext& context) {
gfx::Rect contents_bounds = GetContentsBounds();
contents_bounds.Inset(0, views::NonClientFrameView::kClientEdgeThickness, 0,
bottom_shadow_->height() - kBorderInterior);

Powered by Google App Engine
This is Rietveld 408576698