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

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

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderText fixup Created 8 years, 1 month 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 26 matching lines...) Expand all
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h"
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
41 #include "ui/base/dialogs/selected_file_info.h" 41 #include "ui/base/dialogs/selected_file_info.h"
42 #include "ui/base/ime/text_input_type.h" 42 #include "ui/base/ime/text_input_type.h"
43 #include "ui/base/range/range.h" 43 #include "ui/base/range/range.h"
44 #include "ui/gfx/point.h" 44 #include "ui/gfx/point.h"
45 #include "ui/gfx/rect.h" 45 #include "ui/gfx/rect.h"
46 #include "ui/gfx/rect_f.h" 46 #include "ui/gfx/rect_f.h"
47 #include "ui/gfx/vector2d.h"
47 #include "webkit/glue/webcookie.h" 48 #include "webkit/glue/webcookie.h"
48 #include "webkit/glue/webmenuitem.h" 49 #include "webkit/glue/webmenuitem.h"
49 #include "webkit/glue/webpreferences.h" 50 #include "webkit/glue/webpreferences.h"
50 #include "webkit/plugins/npapi/webplugin.h" 51 #include "webkit/plugins/npapi/webplugin.h"
51 52
52 #if defined(OS_MACOSX) 53 #if defined(OS_MACOSX)
53 #include "content/common/mac/font_descriptor.h" 54 #include "content/common/mac/font_descriptor.h"
54 #endif 55 #endif
55 56
56 #undef IPC_MESSAGE_EXPORT 57 #undef IPC_MESSAGE_EXPORT
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 // The scroll offset. Only one of these can be non-zero, and if they are 554 // The scroll offset. Only one of these can be non-zero, and if they are
554 // both zero, then it means there is no scrolling and the scroll_rect is 555 // both zero, then it means there is no scrolling and the scroll_rect is
555 // ignored. 556 // ignored.
556 IPC_STRUCT_MEMBER(int, dx) 557 IPC_STRUCT_MEMBER(int, dx)
557 IPC_STRUCT_MEMBER(int, dy) 558 IPC_STRUCT_MEMBER(int, dy)
558 559
559 // The rectangular region to scroll. 560 // The rectangular region to scroll.
560 IPC_STRUCT_MEMBER(gfx::Rect, scroll_rect) 561 IPC_STRUCT_MEMBER(gfx::Rect, scroll_rect)
561 562
562 // The scroll offset of the render view. 563 // The scroll offset of the render view.
563 IPC_STRUCT_MEMBER(gfx::Point, scroll_offset) 564 IPC_STRUCT_MEMBER(gfx::Vector2d, scroll_offset)
564 565
565 // The regions of the bitmap (in view coords) that contain updated pixels. 566 // The regions of the bitmap (in view coords) that contain updated pixels.
566 // In the case of scrolling, this includes the scroll damage rect. 567 // In the case of scrolling, this includes the scroll damage rect.
567 IPC_STRUCT_MEMBER(std::vector<gfx::Rect>, copy_rects) 568 IPC_STRUCT_MEMBER(std::vector<gfx::Rect>, copy_rects)
568 569
569 // The size of the RenderView when this message was generated. This is 570 // The size of the RenderView when this message was generated. This is
570 // included so the host knows how large the view is from the perspective of 571 // included so the host knows how large the view is from the perspective of
571 // the renderer process. This is necessary in case a resize operation is in 572 // the renderer process. This is necessary in case a resize operation is in
572 // progress. If auto-resize is enabled, this should update the corresponding 573 // progress. If auto-resize is enabled, this should update the corresponding
573 // view size. 574 // view size.
(...skipping 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after
2385 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent, 2386 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent,
2386 GURL /* content_url */) 2387 GURL /* content_url */)
2387 #endif 2388 #endif
2388 2389
2389 // Notifies that multiple touch targets may have been pressed, and to show 2390 // Notifies that multiple touch targets may have been pressed, and to show
2390 // the disambiguation popup. 2391 // the disambiguation popup.
2391 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, 2392 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup,
2392 gfx::Rect, /* Border of touched targets */ 2393 gfx::Rect, /* Border of touched targets */
2393 gfx::Size, /* Size of zoomed image */ 2394 gfx::Size, /* Size of zoomed image */
2394 TransportDIB::Id /* DIB of zoomed image */) 2395 TransportDIB::Id /* DIB of zoomed image */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698