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

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

Issue 198031: [GTK] Stash new dimensions on resize, so that the backing store can use them (Closed)
Patch Set: Created 11 years, 3 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
« no previous file with comments | « no previous file | 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « no previous file | webkit/tools/test_shell/webwidget_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698