OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 | 334 |
335 // The scroll offset. Only one of these can be non-zero, and if they are | 335 // The scroll offset. Only one of these can be non-zero, and if they are |
336 // both zero, then it means there is no scrolling and the scroll_rect is | 336 // both zero, then it means there is no scrolling and the scroll_rect is |
337 // ignored. | 337 // ignored. |
338 int dx; | 338 int dx; |
339 int dy; | 339 int dy; |
340 | 340 |
341 // The rectangular region to scroll. | 341 // The rectangular region to scroll. |
342 gfx::Rect scroll_rect; | 342 gfx::Rect scroll_rect; |
343 | 343 |
| 344 // The scroll offset of the render view. |
| 345 gfx::Size scroll_offset; |
| 346 |
344 // The regions of the bitmap (in view coords) that contain updated pixels. | 347 // The regions of the bitmap (in view coords) that contain updated pixels. |
345 // In the case of scrolling, this includes the scroll damage rect. | 348 // In the case of scrolling, this includes the scroll damage rect. |
346 std::vector<gfx::Rect> copy_rects; | 349 std::vector<gfx::Rect> copy_rects; |
347 | 350 |
348 // The size of the RenderView when this message was generated. This is | 351 // The size of the RenderView when this message was generated. This is |
349 // included so the host knows how large the view is from the perspective of | 352 // included so the host knows how large the view is from the perspective of |
350 // the renderer process. This is necessary in case a resize operation is in | 353 // the renderer process. This is necessary in case a resize operation is in |
351 // progress. | 354 // progress. |
352 gfx::Size view_size; | 355 gfx::Size view_size; |
353 | 356 |
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1135 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { | 1138 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { |
1136 typedef ViewHostMsg_AccessibilityNotification_Params param_type; | 1139 typedef ViewHostMsg_AccessibilityNotification_Params param_type; |
1137 static void Write(Message* m, const param_type& p); | 1140 static void Write(Message* m, const param_type& p); |
1138 static bool Read(const Message* m, void** iter, param_type* p); | 1141 static bool Read(const Message* m, void** iter, param_type* p); |
1139 static void Log(const param_type& p, std::string* l); | 1142 static void Log(const param_type& p, std::string* l); |
1140 }; | 1143 }; |
1141 | 1144 |
1142 } // namespace IPC | 1145 } // namespace IPC |
1143 | 1146 |
1144 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 1147 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
OLD | NEW |