OLD | NEW |
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 void PaintRect(const gfx::Rect& rect); | 93 void PaintRect(const gfx::Rect& rect); |
94 | 94 |
95 void set_painting(bool value) { | 95 void set_painting(bool value) { |
96 #ifndef NDEBUG | 96 #ifndef NDEBUG |
97 painting_ = value; | 97 painting_ = value; |
98 #endif | 98 #endif |
99 } | 99 } |
100 | 100 |
101 gfx::NativeView view_; | 101 gfx::NativeView view_; |
102 WebWidget* webwidget_; | 102 WebWidget* webwidget_; |
103 scoped_ptr<gfx::PlatformCanvas> canvas_; | 103 scoped_ptr<skia::PlatformCanvas> canvas_; |
104 | 104 |
105 // specifies the portion of the webwidget that needs painting | 105 // specifies the portion of the webwidget that needs painting |
106 gfx::Rect paint_rect_; | 106 gfx::Rect paint_rect_; |
107 | 107 |
108 // specifies the portion of the webwidget that needs scrolling | 108 // specifies the portion of the webwidget that needs scrolling |
109 gfx::Rect scroll_rect_; | 109 gfx::Rect scroll_rect_; |
110 int scroll_dx_; | 110 int scroll_dx_; |
111 int scroll_dy_; | 111 int scroll_dy_; |
112 | 112 |
113 bool track_mouse_leave_; | 113 bool track_mouse_leave_; |
114 | 114 |
115 #ifndef NDEBUG | 115 #ifndef NDEBUG |
116 bool painting_; | 116 bool painting_; |
117 #endif | 117 #endif |
118 }; | 118 }; |
119 | 119 |
120 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBWIDGET_HOST_H_ | 120 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBWIDGET_HOST_H_ |
OLD | NEW |