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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK | 354 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK |
355 // Indicates that this is a response to a ViewMsg_Repaint message. | 355 // Indicates that this is a response to a ViewMsg_Repaint message. |
356 // | 356 // |
357 // If flags is zero, then this message corresponds to an unsolicited paint | 357 // If flags is zero, then this message corresponds to an unsolicited paint |
358 // request by the render view. Any of the above bits may be set in flags, | 358 // request by the render view. Any of the above bits may be set in flags, |
359 // which would indicate that this paint message is an ACK for multiple | 359 // which would indicate that this paint message is an ACK for multiple |
360 // request messages. | 360 // request messages. |
361 IPC_STRUCT_MEMBER(int, flags) | 361 IPC_STRUCT_MEMBER(int, flags) |
362 IPC_STRUCT_END() | 362 IPC_STRUCT_END() |
363 | 363 |
364 #if defined(OS_MACOSX) | |
365 IPC_STRUCT_BEGIN(ViewMsg_UpdateScrollbarTheme_Params) | |
366 IPC_STRUCT_MEMBER(float, initial_button_delay) | |
367 IPC_STRUCT_MEMBER(float, autoscroll_button_delay) | |
368 IPC_STRUCT_MEMBER(bool, jump_on_track_click) | |
369 IPC_STRUCT_MEMBER(blink::ScrollerStyle, preferred_scroller_style) | |
370 IPC_STRUCT_MEMBER(bool, redraw) | |
371 IPC_STRUCT_MEMBER(blink::WebScrollbarButtonsPlacement, button_placement) | |
372 IPC_STRUCT_END() | |
373 #endif | |
374 | |
375 // Messages sent from the browser to the renderer. | 364 // Messages sent from the browser to the renderer. |
376 | 365 |
377 #if defined(OS_ANDROID) | 366 #if defined(OS_ANDROID) |
378 // Tells the renderer to cancel an opened date/time dialog. | 367 // Tells the renderer to cancel an opened date/time dialog. |
379 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog) | 368 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog) |
380 | 369 |
381 // Replaces a date time input field. | 370 // Replaces a date time input field. |
382 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, | 371 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, |
383 double /* dialog_value */) | 372 double /* dialog_value */) |
384 | 373 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 // In normal cases, this message is sent after ViewMsg_WorkerCreated is sent. | 546 // In normal cases, this message is sent after ViewMsg_WorkerCreated is sent. |
558 // But if the shared worker of the same URL already exists and it has failed | 547 // But if the shared worker of the same URL already exists and it has failed |
559 // to load the script, when the renderer send ViewHostMsg_CreateWorker before | 548 // to load the script, when the renderer send ViewHostMsg_CreateWorker before |
560 // the shared worker is killed only ViewMsg_WorkerScriptLoadFailed is sent. | 549 // the shared worker is killed only ViewMsg_WorkerScriptLoadFailed is sent. |
561 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed) | 550 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed) |
562 | 551 |
563 // Sent when the worker has connected. | 552 // Sent when the worker has connected. |
564 // This message is sent only if the worker successfully loaded the script. | 553 // This message is sent only if the worker successfully loaded the script. |
565 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerConnected) | 554 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerConnected) |
566 | 555 |
567 // Tells the renderer that the network type has changed so that navigator.onLine | |
568 // and navigator.connection can be updated. | |
569 IPC_MESSAGE_CONTROL2(ViewMsg_NetworkConnectionChanged, | |
570 net::NetworkChangeNotifier::ConnectionType /* type */, | |
571 double /* max bandwidth mbps */) | |
572 | |
573 // Sent by the browser to synchronize with the next compositor frame. Used only | 556 // Sent by the browser to synchronize with the next compositor frame. Used only |
574 // for tests. | 557 // for tests. |
575 IPC_MESSAGE_ROUTED1(ViewMsg_WaitForNextFrameForTests, int /* routing_id */) | 558 IPC_MESSAGE_ROUTED1(ViewMsg_WaitForNextFrameForTests, int /* routing_id */) |
576 | 559 |
577 #if defined(ENABLE_PLUGINS) | 560 #if defined(ENABLE_PLUGINS) |
578 // Reply to ViewHostMsg_OpenChannelToPpapiBroker | 561 // Reply to ViewHostMsg_OpenChannelToPpapiBroker |
579 // Tells the renderer that the channel to the broker has been created. | 562 // Tells the renderer that the channel to the broker has been created. |
580 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, | 563 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, |
581 base::ProcessId /* broker_pid */, | 564 base::ProcessId /* broker_pid */, |
582 IPC::ChannelHandle /* handle */) | 565 IPC::ChannelHandle /* handle */) |
583 | 566 |
584 // Reply to ViewHostMsg_RequestPpapiBrokerPermission. | 567 // Reply to ViewHostMsg_RequestPpapiBrokerPermission. |
585 // Tells the renderer whether permission to access to PPAPI broker was granted | 568 // Tells the renderer whether permission to access to PPAPI broker was granted |
586 // or not. | 569 // or not. |
587 IPC_MESSAGE_ROUTED1(ViewMsg_PpapiBrokerPermissionResult, | 570 IPC_MESSAGE_ROUTED1(ViewMsg_PpapiBrokerPermissionResult, |
588 bool /* result */) | 571 bool /* result */) |
589 | |
590 // Tells the renderer to empty its plugin list cache, optional reloading | |
591 // pages containing plugins. | |
592 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, | |
593 bool /* reload_pages */) | |
594 #endif | 572 #endif |
595 | 573 |
596 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer | 574 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer |
597 // process to release the magnified image. | 575 // process to release the magnified image. |
598 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, | 576 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, |
599 cc::SharedBitmapId /* id */) | 577 cc::SharedBitmapId /* id */) |
600 | 578 |
601 // Fetches complete rendered content of a web page as plain text. | 579 // Fetches complete rendered content of a web page as plain text. |
602 IPC_MESSAGE_ROUTED0(ViewMsg_GetRenderedText) | 580 IPC_MESSAGE_ROUTED0(ViewMsg_GetRenderedText) |
603 | 581 |
604 #if defined(OS_MACOSX) | |
605 // Notification of a change in scrollbar appearance and/or behavior. | |
606 IPC_MESSAGE_CONTROL1(ViewMsg_UpdateScrollbarTheme, | |
607 ViewMsg_UpdateScrollbarTheme_Params /* params */) | |
608 | |
609 // Notification that the OS X Aqua color preferences changed. | |
610 IPC_MESSAGE_CONTROL3(ViewMsg_SystemColorsChanged, | |
611 int /* AppleAquaColorVariant */, | |
612 std::string /* AppleHighlightedTextColor */, | |
613 std::string /* AppleHighlightColor */) | |
614 #endif | |
615 | |
616 #if defined(OS_ANDROID) | 582 #if defined(OS_ANDROID) |
617 // Tells the renderer to suspend/resume the webkit timers. | |
618 IPC_MESSAGE_CONTROL1(ViewMsg_SetWebKitSharedTimersSuspended, | |
619 bool /* suspend */) | |
620 | |
621 // Notifies the renderer whether hiding/showing the top controls is enabled | 583 // Notifies the renderer whether hiding/showing the top controls is enabled |
622 // and whether or not to animate to the proper state. | 584 // and whether or not to animate to the proper state. |
623 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, | 585 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, |
624 bool /* enable_hiding */, | 586 bool /* enable_hiding */, |
625 bool /* enable_showing */, | 587 bool /* enable_showing */, |
626 bool /* animate */) | 588 bool /* animate */) |
627 | 589 |
628 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) | 590 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) |
629 | 591 |
630 // Extracts the data at the given rect, returning it through the | 592 // Extracts the data at the given rect, returning it through the |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 int /* y */) | 948 int /* y */) |
987 | 949 |
988 #elif defined(OS_MACOSX) | 950 #elif defined(OS_MACOSX) |
989 // Receives content of a web page as plain text. | 951 // Receives content of a web page as plain text. |
990 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 952 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
991 #endif | 953 #endif |
992 | 954 |
993 // Adding a new message? Stick to the sort order above: first platform | 955 // Adding a new message? Stick to the sort order above: first platform |
994 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 956 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
995 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 957 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |