OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 | 14 |
15 #include "app/clipboard/clipboard.h" | 15 #include "app/clipboard/clipboard.h" |
16 #include "app/gfx/native_widget_types.h" | 16 #include "app/gfx/native_widget_types.h" |
17 #include "base/file_path.h" | 17 #include "base/file_path.h" |
18 #include "base/nullable_string16.h" | 18 #include "base/nullable_string16.h" |
19 #include "base/platform_file.h" | 19 #include "base/platform_file.h" |
20 #include "base/gfx/rect.h" | 20 #include "base/gfx/rect.h" |
21 #include "base/shared_memory.h" | 21 #include "base/shared_memory.h" |
22 #include "base/values.h" | 22 #include "base/values.h" |
23 #include "chrome/common/css_colors.h" | 23 #include "chrome/common/css_colors.h" |
24 #include "chrome/common/extensions/update_manifest.h" | 24 #include "chrome/common/extensions/update_manifest.h" |
25 #include "chrome/common/nacl_types.h" | 25 #include "chrome/common/nacl_types.h" |
26 #include "chrome/common/notification_type.h" | 26 #include "chrome/common/notification_type.h" |
| 27 #include "chrome/common/page_zoom.h" |
27 #include "chrome/common/transport_dib.h" | 28 #include "chrome/common/transport_dib.h" |
28 #include "chrome/common/view_types.h" | 29 #include "chrome/common/view_types.h" |
29 #include "ipc/ipc_channel_handle.h" | 30 #include "ipc/ipc_channel_handle.h" |
30 #include "ipc/ipc_message.h" | 31 #include "ipc/ipc_message.h" |
31 #include "ipc/ipc_message_macros.h" | 32 #include "ipc/ipc_message_macros.h" |
32 #include "ipc/ipc_platform_file.h" | 33 #include "ipc/ipc_platform_file.h" |
33 #include "third_party/skia/include/core/SkBitmap.h" | 34 #include "third_party/skia/include/core/SkBitmap.h" |
34 #include "webkit/appcache/appcache_interfaces.h" | 35 #include "webkit/appcache/appcache_interfaces.h" |
35 #include "webkit/glue/dom_operations.h" | 36 #include "webkit/glue/dom_operations.h" |
36 #include "webkit/glue/webcursor.h" | 37 #include "webkit/glue/webcursor.h" |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 string16 /* frame_xpath */, | 341 string16 /* frame_xpath */, |
341 string16 /* message */, | 342 string16 /* message */, |
342 WebKit::WebConsoleMessage::Level /* message_level */) | 343 WebKit::WebConsoleMessage::Level /* message_level */) |
343 | 344 |
344 // RenderViewHostDelegate::RenderViewCreated method sends this message to a | 345 // RenderViewHostDelegate::RenderViewCreated method sends this message to a |
345 // new renderer to notify it that it will host developer tools UI and should | 346 // new renderer to notify it that it will host developer tools UI and should |
346 // set up all neccessary bindings and create DevToolsClient instance that | 347 // set up all neccessary bindings and create DevToolsClient instance that |
347 // will handle communication with inspected page DevToolsAgent. | 348 // will handle communication with inspected page DevToolsAgent. |
348 IPC_MESSAGE_ROUTED0(ViewMsg_SetupDevToolsClient) | 349 IPC_MESSAGE_ROUTED0(ViewMsg_SetupDevToolsClient) |
349 | 350 |
350 // Change the zoom level in the renderer. | 351 // Change the zoom level for the current main frame. If the level actually |
| 352 // changes, a ViewHostMsg_DidZoomHost message will be sent back to the browser |
| 353 // telling it what host got zoomed and what its current zoom level is. |
351 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 354 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
352 int /* One of PageZoom::Function */) | 355 PageZoom::Function /* function */) |
| 356 |
| 357 // Set the zoom level for a particular hostname that the renderer is in the |
| 358 // process of loading. This will be stored, to be used if the load commits |
| 359 // and ignored otherwise. |
| 360 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingHost, |
| 361 std::string /* host */, |
| 362 int /* zoom_level */) |
| 363 |
| 364 // Set the zoom level for a particular hostname, so all render views |
| 365 // displaying this host can update their zoom levels to match. |
| 366 IPC_MESSAGE_CONTROL2(ViewMsg_SetZoomLevelForCurrentHost, |
| 367 std::string /* host */, |
| 368 int /* zoom_level */) |
353 | 369 |
354 // Change encoding of page in the renderer. | 370 // Change encoding of page in the renderer. |
355 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, | 371 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, |
356 std::string /*new encoding name*/) | 372 std::string /*new encoding name*/) |
357 | 373 |
358 // Reset encoding of page in the renderer back to default. | 374 // Reset encoding of page in the renderer back to default. |
359 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault) | 375 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault) |
360 | 376 |
361 // Requests the renderer to reserve a range of page ids. | 377 // Requests the renderer to reserve a range of page ids. |
362 IPC_MESSAGE_ROUTED1(ViewMsg_ReservePageIDRange, | 378 IPC_MESSAGE_ROUTED1(ViewMsg_ReservePageIDRange, |
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1544 // Sent by the renderer process to acknowledge receipt of a | 1560 // Sent by the renderer process to acknowledge receipt of a |
1545 // DownloadProgress message. | 1561 // DownloadProgress message. |
1546 IPC_MESSAGE_ROUTED1(ViewHostMsg_DownloadProgress_ACK, | 1562 IPC_MESSAGE_ROUTED1(ViewHostMsg_DownloadProgress_ACK, |
1547 int /* request_id */) | 1563 int /* request_id */) |
1548 | 1564 |
1549 // Sent by the renderer process to acknowledge receipt of a | 1565 // Sent by the renderer process to acknowledge receipt of a |
1550 // UploadProgress message. | 1566 // UploadProgress message. |
1551 IPC_MESSAGE_ROUTED1(ViewHostMsg_UploadProgress_ACK, | 1567 IPC_MESSAGE_ROUTED1(ViewHostMsg_UploadProgress_ACK, |
1552 int /* request_id */) | 1568 int /* request_id */) |
1553 | 1569 |
| 1570 // Sent when the renderer changes the zoom level for a particular host, so the |
| 1571 // browser can update its records. |
| 1572 IPC_MESSAGE_CONTROL2(ViewHostMsg_DidZoomHost, |
| 1573 std::string /* host */, |
| 1574 int /* zoom_level */) |
| 1575 |
1554 #if defined(OS_WIN) | 1576 #if defined(OS_WIN) |
1555 // Duplicates a shared memory handle from the renderer to the browser. Then | 1577 // Duplicates a shared memory handle from the renderer to the browser. Then |
1556 // the renderer can flush the handle. | 1578 // the renderer can flush the handle. |
1557 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_DuplicateSection, | 1579 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_DuplicateSection, |
1558 base::SharedMemoryHandle /* renderer handle */, | 1580 base::SharedMemoryHandle /* renderer handle */, |
1559 base::SharedMemoryHandle /* browser handle */) | 1581 base::SharedMemoryHandle /* browser handle */) |
1560 #endif | 1582 #endif |
1561 | 1583 |
1562 #if defined(OS_LINUX) | 1584 #if defined(OS_LINUX) |
1563 // Asks the browser create a temporary file for the renderer to fill | 1585 // Asks the browser create a temporary file for the renderer to fill |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2035 string16 /* word */, | 2057 string16 /* word */, |
2036 int /* document tag */, | 2058 int /* document tag */, |
2037 bool /* correct */) | 2059 bool /* correct */) |
2038 | 2060 |
2039 IPC_SYNC_MESSAGE_CONTROL1_1( | 2061 IPC_SYNC_MESSAGE_CONTROL1_1( |
2040 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, | 2062 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, |
2041 string16 /* word */, | 2063 string16 /* word */, |
2042 std::vector<string16> /* suggestions */) | 2064 std::vector<string16> /* suggestions */) |
2043 | 2065 |
2044 IPC_END_MESSAGES(ViewHost) | 2066 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |