| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 // specifies the portion of the webwidget that needs painting | 126 // specifies the portion of the webwidget that needs painting |
| 127 gfx::Rect paint_rect_; | 127 gfx::Rect paint_rect_; |
| 128 | 128 |
| 129 // specifies the portion of the webwidget that needs scrolling | 129 // specifies the portion of the webwidget that needs scrolling |
| 130 gfx::Rect scroll_rect_; | 130 gfx::Rect scroll_rect_; |
| 131 int scroll_dx_; | 131 int scroll_dx_; |
| 132 int scroll_dy_; | 132 int scroll_dy_; |
| 133 | 133 |
| 134 bool track_mouse_leave_; | 134 bool track_mouse_leave_; |
| 135 #if defined(OS_LINUX) |
| 136 // Since GtkWindow resize is asynchronous, we have to stash the dimensions, |
| 137 // so that the backing store doesn't have to wait for sizing to take place. |
| 138 gfx::Size logical_size_; |
| 139 #endif |
| 135 | 140 |
| 136 #ifndef NDEBUG | 141 #ifndef NDEBUG |
| 137 bool painting_; | 142 bool painting_; |
| 138 #endif | 143 #endif |
| 139 }; | 144 }; |
| 140 | 145 |
| 141 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBWIDGET_HOST_H_ | 146 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBWIDGET_HOST_H_ |
| OLD | NEW |