| OLD | NEW |
| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 #include "ui/base/ui_base_types.h" | 57 #include "ui/base/ui_base_types.h" |
| 58 #include "ui/gfx/geometry/point.h" | 58 #include "ui/gfx/geometry/point.h" |
| 59 #include "ui/gfx/geometry/rect.h" | 59 #include "ui/gfx/geometry/rect.h" |
| 60 #include "ui/gfx/geometry/rect_f.h" | 60 #include "ui/gfx/geometry/rect_f.h" |
| 61 #include "ui/gfx/geometry/vector2d.h" | 61 #include "ui/gfx/geometry/vector2d.h" |
| 62 #include "ui/gfx/geometry/vector2d_f.h" | 62 #include "ui/gfx/geometry/vector2d_f.h" |
| 63 #include "ui/gfx/icc_profile.h" | 63 #include "ui/gfx/icc_profile.h" |
| 64 #include "ui/gfx/ipc/color/gfx_param_traits.h" | 64 #include "ui/gfx/ipc/color/gfx_param_traits.h" |
| 65 #include "ui/gfx/ipc/gfx_param_traits.h" | 65 #include "ui/gfx/ipc/gfx_param_traits.h" |
| 66 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" | 66 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" |
| 67 #include "ui/gfx/range/range.h" | |
| 68 | 67 |
| 69 #if defined(OS_MACOSX) | 68 #if defined(OS_MACOSX) |
| 70 #include "third_party/WebKit/public/platform/WebScrollbarButtonsPlacement.h" | 69 #include "third_party/WebKit/public/platform/WebScrollbarButtonsPlacement.h" |
| 71 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" | 70 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
| 72 #endif | 71 #endif |
| 73 | 72 |
| 74 #undef IPC_MESSAGE_EXPORT | 73 #undef IPC_MESSAGE_EXPORT |
| 75 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 74 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 76 | 75 |
| 77 #define IPC_MESSAGE_START ViewMsgStart | 76 #define IPC_MESSAGE_START ViewMsgStart |
| (...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 int /* routing_id */, | 831 int /* routing_id */, |
| 833 GURL /* document_url */, | 832 GURL /* document_url */, |
| 834 base::FilePath /* plugin_path */) | 833 base::FilePath /* plugin_path */) |
| 835 #endif // defined(ENABLE_PLUGINS) | 834 #endif // defined(ENABLE_PLUGINS) |
| 836 | 835 |
| 837 // Send the tooltip text for the current mouse position to the browser. | 836 // Send the tooltip text for the current mouse position to the browser. |
| 838 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, | 837 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, |
| 839 base::string16 /* tooltip text string */, | 838 base::string16 /* tooltip text string */, |
| 840 blink::WebTextDirection /* text direction hint */) | 839 blink::WebTextDirection /* text direction hint */) |
| 841 | 840 |
| 842 // Notification that the text selection has changed. | |
| 843 // Note: The secound parameter is the character based offset of the | |
| 844 // base::string16 | |
| 845 // text in the document. | |
| 846 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, | |
| 847 base::string16 /* text covers the selection range */, | |
| 848 uint32_t /* the offset of the text in the document */, | |
| 849 gfx::Range /* selection range in the document */) | |
| 850 | |
| 851 // Notification that the selection bounds have changed. | 841 // Notification that the selection bounds have changed. |
| 852 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged, | 842 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged, |
| 853 ViewHostMsg_SelectionBounds_Params) | 843 ViewHostMsg_SelectionBounds_Params) |
| 854 | 844 |
| 855 // Asks the browser to enumerate a directory. This is equivalent to running | 845 // Asks the browser to enumerate a directory. This is equivalent to running |
| 856 // the file chooser in directory-enumeration mode and having the user select | 846 // the file chooser in directory-enumeration mode and having the user select |
| 857 // the given directory. The result is returned in a | 847 // the given directory. The result is returned in a |
| 858 // ViewMsg_EnumerateDirectoryResponse message. | 848 // ViewMsg_EnumerateDirectoryResponse message. |
| 859 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, | 849 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, |
| 860 int /* request_id */, | 850 int /* request_id */, |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 996 int /* y */) | 986 int /* y */) |
| 997 | 987 |
| 998 #elif defined(OS_MACOSX) | 988 #elif defined(OS_MACOSX) |
| 999 // Receives content of a web page as plain text. | 989 // Receives content of a web page as plain text. |
| 1000 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 990 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
| 1001 #endif | 991 #endif |
| 1002 | 992 |
| 1003 // Adding a new message? Stick to the sort order above: first platform | 993 // Adding a new message? Stick to the sort order above: first platform |
| 1004 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 994 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1005 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 995 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |