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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_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/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index 8c0cc94409b52a35d711baebc9192fead2f6bac9..518050f7c4c0603c9e3ee425c688e48986ceb5c4 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -74,6 +74,7 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/theme_provider.h"
+#include "ui/compositor/paint_context.h"
#include "ui/events/event.h"
#include "ui/gfx/animation/slide_animation.h"
#include "ui/gfx/canvas.h"
@@ -1217,7 +1218,7 @@ void LocationBarView::OnPaint(gfx::Canvas* canvas) {
// inner shadow which should be drawn over the contents.
}
-void LocationBarView::PaintChildren(const PaintContext& context) {
+void LocationBarView::PaintChildren(const ui::PaintContext& context) {
// Paint all the children except for the omnibox itself, which may need to be
// clipped if it's animating in.
for (int i = 0, count = child_count(); i < count; ++i) {

Powered by Google App Engine
This is Rietveld 408576698