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

Side by Side Diff: webkit/tools/test_shell/webwidget_host.h

Issue 21192: Add support for the "repaint" layout tests (LayoutTests/fast/repaint/*), whic... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/tools/test_shell/test_shell.cc ('k') | webkit/tools/test_shell/webwidget_host_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_TOOLS_TEST_SHELL_WEBWIDGET_HOST_H_ 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_WEBWIDGET_HOST_H_
6 #define WEBKIT_TOOLS_TEST_SHELL_WEBWIDGET_HOST_H_ 6 #define WEBKIT_TOOLS_TEST_SHELL_WEBWIDGET_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/gfx/native_widget_types.h" 9 #include "base/gfx/native_widget_types.h"
10 #include "base/gfx/rect.h" 10 #include "base/gfx/rect.h"
(...skipping 28 matching lines...) Expand all
39 #if defined(OS_WIN) 39 #if defined(OS_WIN)
40 void SetCursor(HCURSOR cursor); 40 void SetCursor(HCURSOR cursor);
41 #endif 41 #endif
42 42
43 void DiscardBackingStore(); 43 void DiscardBackingStore();
44 // Allow clients to update the paint rect. For example, if we get a gdk 44 // Allow clients to update the paint rect. For example, if we get a gdk
45 // expose or WM_PAINT event, we need to update the paint rect. 45 // expose or WM_PAINT event, we need to update the paint rect.
46 void UpdatePaintRect(const gfx::Rect& rect); 46 void UpdatePaintRect(const gfx::Rect& rect);
47 void Paint(); 47 void Paint();
48 48
49 // Get the backing store.
50 skia::PlatformCanvas* canvas() const { return canvas_.get(); }
51
52 // Paint() the widget, and cover it with a gray mask (black with a=0.66).
53 void DisplayForRepaint();
54
49 protected: 55 protected:
56 // Paint the widget into canvas_.
57 void PaintToCanvas();
brettw 2009/02/14 20:02:38 These two declarations should go below the constru
58
59 // Blit |canvas_| to |view_|.
60 void PaintCanvasToView();
61
50 WebWidgetHost(); 62 WebWidgetHost();
51 ~WebWidgetHost(); 63 ~WebWidgetHost();
52 64
53 #if defined(OS_WIN) 65 #if defined(OS_WIN)
54 // Per-class wndproc. Returns true if the event should be swallowed. 66 // Per-class wndproc. Returns true if the event should be swallowed.
55 virtual bool WndProc(UINT message, WPARAM wparam, LPARAM lparam); 67 virtual bool WndProc(UINT message, WPARAM wparam, LPARAM lparam);
56 68
57 void Resize(LPARAM lparam); 69 void Resize(LPARAM lparam);
58 void MouseEvent(UINT message, WPARAM wparam, LPARAM lparam); 70 void MouseEvent(UINT message, WPARAM wparam, LPARAM lparam);
59 void WheelEvent(WPARAM wparam, LPARAM lparam); 71 void WheelEvent(WPARAM wparam, LPARAM lparam);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 int scroll_dy_; 123 int scroll_dy_;
112 124
113 bool track_mouse_leave_; 125 bool track_mouse_leave_;
114 126
115 #ifndef NDEBUG 127 #ifndef NDEBUG
116 bool painting_; 128 bool painting_;
117 #endif 129 #endif
118 }; 130 };
119 131
120 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBWIDGET_HOST_H_ 132 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBWIDGET_HOST_H_
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell.cc ('k') | webkit/tools/test_shell/webwidget_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698