diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-19 22:07:48 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-19 22:07:48 +0000 |
commit | a720c07753462c0b8597bacb052ea9a354713dda (patch) | |
tree | 0387c6424afcfa662393afd64dfb89fa53853357 /chrome/views/widget/root_view_gtk.cc | |
parent | b1594d0f4e1b523e72c84b13ebe9bf7e2377648e (diff) | |
download | chromium_src-a720c07753462c0b8597bacb052ea9a354713dda.zip chromium_src-a720c07753462c0b8597bacb052ea9a354713dda.tar.gz chromium_src-a720c07753462c0b8597bacb052ea9a354713dda.tar.bz2 |
Revert "Now have a TextButton rendering." Broke Windows.
TBR=beng
Review URL: http://codereview.chromium.org/50035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12163 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/widget/root_view_gtk.cc')
-rw-r--r-- | chrome/views/widget/root_view_gtk.cc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/chrome/views/widget/root_view_gtk.cc b/chrome/views/widget/root_view_gtk.cc index 115b37d..1c7fe9c 100644 --- a/chrome/views/widget/root_view_gtk.cc +++ b/chrome/views/widget/root_view_gtk.cc @@ -10,22 +10,24 @@ namespace views { +// TODO(port): Port GetScheduledPaintRectConstrainedToSize() to not use RECT. + void RootView::UpdateCursor(const MouseEvent& e) { NOTIMPLEMENTED(); } +// TODO(port): Port OnPaint() to not use HWNDs in its public interface. void RootView::OnPaint(GdkEventExpose* event) { ChromeCanvasPaint canvas(event); + canvas.FillRectInt(SK_ColorRED, 5, 5, 10, 10); + canvas.FillRectInt(SK_ColorGREEN, 25, 5, 10, 10); + canvas.FillRectInt(SK_ColorBLUE, 45, 5, 10, 10); if (!canvas.isEmpty()) { - SchedulePaint(gfx::Rect(canvas.rectangle()), false); - if (NeedsPainting(false)) { + // const PAINTSTRUCT& ps = canvas.paintStruct(); + // SchedulePaint(gfx::Rect(ps.rcPaint), false); + if (NeedsPainting(false)) ProcessPaint(&canvas); - - canvas.FillRectInt(SK_ColorRED, 5, 5, 10, 10); - canvas.FillRectInt(SK_ColorGREEN, 25, 5, 10, 10); - canvas.FillRectInt(SK_ColorBLUE, 45, 5, 10, 10); - } } } |