| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
| 6 // header guard. | 6 // header guard. |
| 7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 | 13 |
| 14 #include "base/clipboard.h" | 14 #include "base/clipboard.h" |
| 15 #include "base/gfx/rect.h" | 15 #include "base/gfx/rect.h" |
| 16 #include "base/gfx/native_widget_types.h" | 16 #include "base/gfx/native_widget_types.h" |
| 17 #include "base/shared_memory.h" | 17 #include "base/shared_memory.h" |
| 18 #include "chrome/common/ipc_message_macros.h" | 18 #include "chrome/common/ipc_message_macros.h" |
| 19 #include "chrome/common/transport_dib.h" | 19 #include "chrome/common/transport_dib.h" |
| 20 #include "skia/include/SkBitmap.h" | 20 #include "skia/include/SkBitmap.h" |
| 21 #include "webkit/glue/console_message_level.h" | 21 #include "webkit/glue/console_message_level.h" |
| 22 #include "webkit/glue/dom_operations.h" | 22 #include "webkit/glue/dom_operations.h" |
| 23 #include "webkit/glue/screen_info.h" | 23 #include "webkit/glue/screen_info.h" |
| 24 #include "webkit/glue/webcursor.h" | 24 #include "webkit/glue/webcursor.h" |
| 25 #include "webkit/glue/webinputevent.h" | 25 #include "webkit/glue/webinputevent.h" |
| 26 #include "webkit/glue/webplugin.h" | 26 #include "webkit/glue/webplugin.h" |
| 27 #include "webkit/glue/webtextdirection.h" |
| 27 | 28 |
| 28 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes | 29 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes |
| 29 // more sense with our current design. | 30 // more sense with our current design. |
| 30 | 31 |
| 31 //----------------------------------------------------------------------------- | 32 //----------------------------------------------------------------------------- |
| 32 // RenderView messages | 33 // RenderView messages |
| 33 // These are messages sent from the browser to the renderer process. | 34 // These are messages sent from the browser to the renderer process. |
| 34 | 35 |
| 35 IPC_BEGIN_MESSAGES(View) | 36 IPC_BEGIN_MESSAGES(View) |
| 36 // Used typically when recovering from a crash. The new rendering process | 37 // Used typically when recovering from a crash. The new rendering process |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 error code*/) | 505 error code*/) |
| 505 | 506 |
| 506 IPC_MESSAGE_ROUTED3(ViewMsg_NotifyAudioStreamVolume, | 507 IPC_MESSAGE_ROUTED3(ViewMsg_NotifyAudioStreamVolume, |
| 507 int /* stream id */, | 508 int /* stream id */, |
| 508 double /* left channel */, | 509 double /* left channel */, |
| 509 double /* right channel */) | 510 double /* right channel */) |
| 510 | 511 |
| 511 // Notification that a move or resize renderer's containing window has | 512 // Notification that a move or resize renderer's containing window has |
| 512 // started. | 513 // started. |
| 513 IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted) | 514 IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted) |
| 515 |
| 516 // Changes the text direction of a selected input field. |
| 517 // * direction (WebTextDirection) |
| 518 // Represents the new text direction. |
| 519 // Its possible values are listed below: |
| 520 // Value New Text Direction |
| 521 // WEB_TEXT_DIRECTION_DEFAULT NaturalWritingDirection ("inherit") |
| 522 // WEB_TEXT_DIRECTION_LTR LeftToRightWritingDirection ("rtl") |
| 523 // WEB_TEXT_DIRECTION_RTL RightToLeftWritingDirection ("ltr") |
| 524 IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection, |
| 525 WebTextDirection /* direction */) |
| 526 |
| 514 IPC_END_MESSAGES(View) | 527 IPC_END_MESSAGES(View) |
| 515 | 528 |
| 516 | 529 |
| 517 //----------------------------------------------------------------------------- | 530 //----------------------------------------------------------------------------- |
| 518 // WebContents messages | 531 // WebContents messages |
| 519 // These are messages sent from the renderer to the browser process. | 532 // These are messages sent from the renderer to the browser process. |
| 520 | 533 |
| 521 IPC_BEGIN_MESSAGES(ViewHost) | 534 IPC_BEGIN_MESSAGES(ViewHost) |
| 522 // Sent by the renderer when it is creating a new window. The browser creates | 535 // Sent by the renderer when it is creating a new window. The browser creates |
| 523 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 536 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1219 | 1232 |
| 1220 // Wraps an IPC message that's destined to the worker on the renderer->browser | 1233 // Wraps an IPC message that's destined to the worker on the renderer->browser |
| 1221 // hop. | 1234 // hop. |
| 1222 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, | 1235 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, |
| 1223 IPC::Message /* message */) | 1236 IPC::Message /* message */) |
| 1224 | 1237 |
| 1225 // Notification when new feeds have been discovered on the page. | 1238 // Notification when new feeds have been discovered on the page. |
| 1226 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateFeedList, | 1239 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateFeedList, |
| 1227 ViewHostMsg_UpdateFeedList_Params) | 1240 ViewHostMsg_UpdateFeedList_Params) |
| 1228 IPC_END_MESSAGES(ViewHost) | 1241 IPC_END_MESSAGES(ViewHost) |
| OLD | NEW |