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

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

Issue 43058: Reverting 11396. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 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
55 protected: 49 protected:
56 // Paint the widget into canvas_.
57 void PaintToCanvas();
58
59 // Blit |canvas_| to |view_|.
60 void PaintCanvasToView();
61
62 WebWidgetHost(); 50 WebWidgetHost();
63 ~WebWidgetHost(); 51 ~WebWidgetHost();
64 52
65 #if defined(OS_WIN) 53 #if defined(OS_WIN)
66 // Per-class wndproc. Returns true if the event should be swallowed. 54 // Per-class wndproc. Returns true if the event should be swallowed.
67 virtual bool WndProc(UINT message, WPARAM wparam, LPARAM lparam); 55 virtual bool WndProc(UINT message, WPARAM wparam, LPARAM lparam);
68 56
69 void Resize(LPARAM lparam); 57 void Resize(LPARAM lparam);
70 void MouseEvent(UINT message, WPARAM wparam, LPARAM lparam); 58 void MouseEvent(UINT message, WPARAM wparam, LPARAM lparam);
71 void WheelEvent(WPARAM wparam, LPARAM lparam); 59 void WheelEvent(WPARAM wparam, LPARAM lparam);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 int scroll_dy_; 111 int scroll_dy_;
124 112
125 bool track_mouse_leave_; 113 bool track_mouse_leave_;
126 114
127 #ifndef NDEBUG 115 #ifndef NDEBUG
128 bool painting_; 116 bool painting_;
129 #endif 117 #endif
130 }; 118 };
131 119
132 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBWIDGET_HOST_H_ 120 #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