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

Side by Side Diff: content/common/view_messages.h

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

Powered by Google App Engine
This is Rietveld 408576698