| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 } | 314 } |
| 315 static bool is_repaint_ack(int flags) { | 315 static bool is_repaint_ack(int flags) { |
| 316 return (flags & IS_REPAINT_ACK) != 0; | 316 return (flags & IS_REPAINT_ACK) != 0; |
| 317 } | 317 } |
| 318 }; | 318 }; |
| 319 | 319 |
| 320 struct ViewHostMsg_UpdateRect_Params { | 320 struct ViewHostMsg_UpdateRect_Params { |
| 321 ViewHostMsg_UpdateRect_Params(); | 321 ViewHostMsg_UpdateRect_Params(); |
| 322 ~ViewHostMsg_UpdateRect_Params(); | 322 ~ViewHostMsg_UpdateRect_Params(); |
| 323 | 323 |
| 324 // The bitmap to be painted into the view at the locations specified by | 324 // The ID of the bitmap to be painted into the view at the locations specified |
| 325 // update_rects. | 325 // by update_rects. |
| 326 TransportDIB::Id bitmap; | 326 TransportDIB::Id dib_id; |
| 327 |
| 328 // The handle to the bitmap, in case it needs to be mapped on the browser. |
| 329 TransportDIB::Handle dib_handle; |
| 327 | 330 |
| 328 // The position and size of the bitmap. | 331 // The position and size of the bitmap. |
| 329 gfx::Rect bitmap_rect; | 332 gfx::Rect bitmap_rect; |
| 330 | 333 |
| 331 // The scroll offset. Only one of these can be non-zero, and if they are | 334 // The scroll offset. Only one of these can be non-zero, and if they are |
| 332 // both zero, then it means there is no scrolling and the scroll_rect is | 335 // both zero, then it means there is no scrolling and the scroll_rect is |
| 333 // ignored. | 336 // ignored. |
| 334 int dx; | 337 int dx; |
| 335 int dy; | 338 int dy; |
| 336 | 339 |
| (...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1326 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { | 1329 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { |
| 1327 typedef ViewHostMsg_AccessibilityNotification_Params param_type; | 1330 typedef ViewHostMsg_AccessibilityNotification_Params param_type; |
| 1328 static void Write(Message* m, const param_type& p); | 1331 static void Write(Message* m, const param_type& p); |
| 1329 static bool Read(const Message* m, void** iter, param_type* p); | 1332 static bool Read(const Message* m, void** iter, param_type* p); |
| 1330 static void Log(const param_type& p, std::string* l); | 1333 static void Log(const param_type& p, std::string* l); |
| 1331 }; | 1334 }; |
| 1332 | 1335 |
| 1333 } // namespace IPC | 1336 } // namespace IPC |
| 1334 | 1337 |
| 1335 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 1338 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
| OLD | NEW |