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

Side by Side Diff: content/common/view_messages.h

Issue 10540144: Tag TransportDIBs with the device scale factor they expect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 // 527 //
528 // If flags is zero, then this message corresponds to an unsolicited paint 528 // If flags is zero, then this message corresponds to an unsolicited paint
529 // request by the render view. Any of the above bits may be set in flags, 529 // request by the render view. Any of the above bits may be set in flags,
530 // which would indicate that this paint message is an ACK for multiple 530 // which would indicate that this paint message is an ACK for multiple
531 // request messages. 531 // request messages.
532 IPC_STRUCT_MEMBER(int, flags) 532 IPC_STRUCT_MEMBER(int, flags)
533 533
534 // Whether or not the renderer expects a ViewMsg_UpdateRect_ACK for this 534 // Whether or not the renderer expects a ViewMsg_UpdateRect_ACK for this
535 // update. True for 2D painting, but false for accelerated compositing. 535 // update. True for 2D painting, but false for accelerated compositing.
536 IPC_STRUCT_MEMBER(bool, needs_ack) 536 IPC_STRUCT_MEMBER(bool, needs_ack)
537
538 // All the above coordinates are in DIP. This is the scale factor needed
Avi (use Gerrit) 2012/06/13 20:34:13 DIBs or DIPs? Here it's DIPs.
Nico 2012/06/13 20:38:50 This time it's right :-) DIP is "device-independe
539 // to convert them to pixels.
540 IPC_STRUCT_MEMBER(float, scale_factor)
537 IPC_STRUCT_END() 541 IPC_STRUCT_END()
538 542
539 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) 543 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params)
540 // The serialized script value. 544 // The serialized script value.
541 IPC_STRUCT_MEMBER(string16, data) 545 IPC_STRUCT_MEMBER(string16, data)
542 546
543 // When sent to the browser, this is the routing ID of the source frame in 547 // When sent to the browser, this is the routing ID of the source frame in
544 // the source process. The browser replaces it with the routing ID of the 548 // the source process. The browser replaces it with the routing ID of the
545 // equivalent (swapped out) frame in the destination process. Set to 549 // equivalent (swapped out) frame in the destination process. Set to
546 // MSG_ROUTING_NONE if the source frame isn't supported (e.g., subframes). 550 // MSG_ROUTING_NONE if the source frame isn't supported (e.g., subframes).
(...skipping 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after
2093 // (according to the value of is_hung). The browser can give the user the 2097 // (according to the value of is_hung). The browser can give the user the
2094 // option of killing the plugin. 2098 // option of killing the plugin.
2095 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, 2099 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung,
2096 int /* plugin_child_id */, 2100 int /* plugin_child_id */,
2097 FilePath /* path */, 2101 FilePath /* path */,
2098 bool /* is_hung */) 2102 bool /* is_hung */)
2099 2103
2100 // Screen was rotated. Dispatched to the onorientationchange javascript API. 2104 // Screen was rotated. Dispatched to the onorientationchange javascript API.
2101 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, 2105 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent,
2102 int /* orientation */) 2106 int /* orientation */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698