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

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: rebasefinal 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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 // The scroll offset. Only one of these can be non-zero, and if they are 553 // The scroll offset. Only one of these can be non-zero, and if they are
553 // both zero, then it means there is no scrolling and the scroll_rect is 554 // both zero, then it means there is no scrolling and the scroll_rect is
554 // ignored. 555 // ignored.
555 IPC_STRUCT_MEMBER(int, dx) 556 IPC_STRUCT_MEMBER(int, dx)
556 IPC_STRUCT_MEMBER(int, dy) 557 IPC_STRUCT_MEMBER(int, dy)
557 558
558 // The rectangular region to scroll. 559 // The rectangular region to scroll.
559 IPC_STRUCT_MEMBER(gfx::Rect, scroll_rect) 560 IPC_STRUCT_MEMBER(gfx::Rect, scroll_rect)
560 561
561 // The scroll offset of the render view. 562 // The scroll offset of the render view.
562 IPC_STRUCT_MEMBER(gfx::Point, scroll_offset) 563 IPC_STRUCT_MEMBER(gfx::Vector2d, scroll_offset)
563 564
564 // The regions of the bitmap (in view coords) that contain updated pixels. 565 // The regions of the bitmap (in view coords) that contain updated pixels.
565 // In the case of scrolling, this includes the scroll damage rect. 566 // In the case of scrolling, this includes the scroll damage rect.
566 IPC_STRUCT_MEMBER(std::vector<gfx::Rect>, copy_rects) 567 IPC_STRUCT_MEMBER(std::vector<gfx::Rect>, copy_rects)
567 568
568 // The size of the RenderView when this message was generated. This is 569 // The size of the RenderView when this message was generated. This is
569 // included so the host knows how large the view is from the perspective of 570 // included so the host knows how large the view is from the perspective of
570 // the renderer process. This is necessary in case a resize operation is in 571 // the renderer process. This is necessary in case a resize operation is in
571 // progress. If auto-resize is enabled, this should update the corresponding 572 // progress. If auto-resize is enabled, this should update the corresponding
572 // view size. 573 // view size.
(...skipping 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after
2384 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent, 2385 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent,
2385 GURL /* content_url */) 2386 GURL /* content_url */)
2386 #endif 2387 #endif
2387 2388
2388 // Notifies that multiple touch targets may have been pressed, and to show 2389 // Notifies that multiple touch targets may have been pressed, and to show
2389 // the disambiguation popup. 2390 // the disambiguation popup.
2390 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, 2391 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup,
2391 gfx::Rect, /* Border of touched targets */ 2392 gfx::Rect, /* Border of touched targets */
2392 gfx::Size, /* Size of zoomed image */ 2393 gfx::Size, /* Size of zoomed image */
2393 TransportDIB::Id /* DIB of zoomed image */) 2394 TransportDIB::Id /* DIB of zoomed image */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698