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

Unified Diff: chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h

Issue 6469074: AutocompletePopupContentsView must override View::PaintChildren to prevent views (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 10 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 | « no previous file | chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h
diff --git a/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h b/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h
index 12088c7486430f2a1d3cb7a2486a300c5db56879..1f11150786bfb65b8d60d916e979e8f9c0824609 100644
--- a/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h
+++ b/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h
@@ -69,7 +69,9 @@ class AutocompletePopupContentsView : public views::View,
// Overridden from views::View:
virtual void OnPaint(gfx::Canvas* canvas);
- virtual void PaintChildren(gfx::CanvasSkia* canvas);
+ virtual void PaintChildren(gfx::Canvas* canvas) {
Peter Kasting 2011/02/21 04:59:30 Nit: Never define virtual functions in the class d
varunjain 2011/02/21 16:36:30 Done.
+ // We paint our children inside OnPaint().
Peter Kasting 2011/02/21 04:59:30 Nit: Add more detail: "... It's important not to a
varunjain 2011/02/21 16:36:30 Done.
+ }
virtual void Layout();
virtual void LayoutChildren();
virtual void OnMouseEntered(const views::MouseEvent& event);
@@ -81,6 +83,8 @@ class AutocompletePopupContentsView : public views::View,
virtual views::View* GetViewForPoint(const gfx::Point& point);
protected:
+ virtual void PaintResultViews(gfx::CanvasSkia* canvas);
+
// Calculates the height needed to show all the results in the model.
virtual int CalculatePopupHeight();
virtual AutocompleteResultView* CreateResultView(
« no previous file with comments | « no previous file | chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698