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

Unified Diff: ui/views/widget/widget.h

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: ui/views/widget/widget.h
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
index 2f6030bd99a397cdf3ff12422f7a40f50d96f0ee..f3682c9289238ca8c3cb26f76e619fefe0401e66 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -796,7 +796,7 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
void OnNativeWidgetEndUserBoundsChange() override;
bool HasFocusManager() const override;
bool OnNativeWidgetPaintAccelerated(const gfx::Rect& dirty_region) override;
- void OnNativeWidgetPaint(gfx::Canvas* canvas) override;
+ void OnNativeWidgetPaint(const ui::PaintContext& context) override;
int GetNonClientComponent(const gfx::Point& point) override;
void OnKeyEvent(ui::KeyEvent* event) override;
void OnMouseEvent(ui::MouseEvent* event) override;

Powered by Google App Engine
This is Rietveld 408576698