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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
250 IPC_STRUCT_TRAITS_MEMBER(active_selection_bg_color) | 250 IPC_STRUCT_TRAITS_MEMBER(active_selection_bg_color) |
251 IPC_STRUCT_TRAITS_MEMBER(active_selection_fg_color) | 251 IPC_STRUCT_TRAITS_MEMBER(active_selection_fg_color) |
252 IPC_STRUCT_TRAITS_MEMBER(inactive_selection_bg_color) | 252 IPC_STRUCT_TRAITS_MEMBER(inactive_selection_bg_color) |
253 IPC_STRUCT_TRAITS_MEMBER(inactive_selection_fg_color) | 253 IPC_STRUCT_TRAITS_MEMBER(inactive_selection_fg_color) |
254 IPC_STRUCT_TRAITS_MEMBER(browser_handles_all_top_level_requests) | 254 IPC_STRUCT_TRAITS_MEMBER(browser_handles_all_top_level_requests) |
255 IPC_STRUCT_TRAITS_MEMBER(caret_blink_interval) | 255 IPC_STRUCT_TRAITS_MEMBER(caret_blink_interval) |
256 IPC_STRUCT_TRAITS_MEMBER(use_custom_colors) | 256 IPC_STRUCT_TRAITS_MEMBER(use_custom_colors) |
257 IPC_STRUCT_TRAITS_MEMBER(enable_referrers) | 257 IPC_STRUCT_TRAITS_MEMBER(enable_referrers) |
258 IPC_STRUCT_TRAITS_MEMBER(enable_do_not_track) | 258 IPC_STRUCT_TRAITS_MEMBER(enable_do_not_track) |
259 IPC_STRUCT_TRAITS_MEMBER(webrtc_ip_handling_policy) | 259 IPC_STRUCT_TRAITS_MEMBER(webrtc_ip_handling_policy) |
260 IPC_STRUCT_TRAITS_MEMBER(default_zoom_level) | |
261 IPC_STRUCT_TRAITS_MEMBER(user_agent_override) | 260 IPC_STRUCT_TRAITS_MEMBER(user_agent_override) |
262 IPC_STRUCT_TRAITS_MEMBER(accept_languages) | 261 IPC_STRUCT_TRAITS_MEMBER(accept_languages) |
263 IPC_STRUCT_TRAITS_MEMBER(report_frame_name_changes) | 262 IPC_STRUCT_TRAITS_MEMBER(report_frame_name_changes) |
264 IPC_STRUCT_TRAITS_MEMBER(tap_multiple_targets_strategy) | 263 IPC_STRUCT_TRAITS_MEMBER(tap_multiple_targets_strategy) |
265 IPC_STRUCT_TRAITS_MEMBER(disable_client_blocked_error_page) | 264 IPC_STRUCT_TRAITS_MEMBER(disable_client_blocked_error_page) |
266 IPC_STRUCT_TRAITS_MEMBER(plugin_fullscreen_allowed) | 265 IPC_STRUCT_TRAITS_MEMBER(plugin_fullscreen_allowed) |
267 IPC_STRUCT_TRAITS_MEMBER(use_video_overlay_for_embedded_encrypted_video) | 266 IPC_STRUCT_TRAITS_MEMBER(use_video_overlay_for_embedded_encrypted_video) |
268 IPC_STRUCT_TRAITS_MEMBER(use_view_overlay_for_all_video) | 267 IPC_STRUCT_TRAITS_MEMBER(use_view_overlay_for_all_video) |
269 IPC_STRUCT_TRAITS_MEMBER(network_contry_iso) | 268 IPC_STRUCT_TRAITS_MEMBER(network_contry_iso) |
270 #if defined(OS_WIN) | 269 #if defined(OS_WIN) |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
530 IPC_STRUCT_MEMBER(content::ResizeParams, initial_size) | 529 IPC_STRUCT_MEMBER(content::ResizeParams, initial_size) |
531 | 530 |
532 // Whether to enable auto-resize. | 531 // Whether to enable auto-resize. |
533 IPC_STRUCT_MEMBER(bool, enable_auto_resize) | 532 IPC_STRUCT_MEMBER(bool, enable_auto_resize) |
534 | 533 |
535 // The minimum size to layout the page if auto-resize is enabled. | 534 // The minimum size to layout the page if auto-resize is enabled. |
536 IPC_STRUCT_MEMBER(gfx::Size, min_size) | 535 IPC_STRUCT_MEMBER(gfx::Size, min_size) |
537 | 536 |
538 // The maximum size to layout the page if auto-resize is enabled. | 537 // The maximum size to layout the page if auto-resize is enabled. |
539 IPC_STRUCT_MEMBER(gfx::Size, max_size) | 538 IPC_STRUCT_MEMBER(gfx::Size, max_size) |
539 | |
540 // The preferred zoom level for sub-frames | |
alexmos
2016/04/07 23:48:08
nit: s/sub-frames/subframes./ (just for consisten
alexmos
2016/04/07 23:48:08
Not sure what you mean by the zoom level being "pr
wjmaclean
2016/04/08 20:13:29
Done.
wjmaclean
2016/04/08 20:13:29
You're right, we probably don't need "preferred",
alexmos
2016/04/11 23:19:10
OK. The comment still has "preferred" in it, so m
wjmaclean
2016/04/13 18:47:47
Done.
| |
541 IPC_STRUCT_MEMBER(double, preferred_subframe_zoom_level) | |
540 IPC_STRUCT_END() | 542 IPC_STRUCT_END() |
541 | 543 |
542 #if defined(OS_MACOSX) | 544 #if defined(OS_MACOSX) |
543 IPC_STRUCT_BEGIN(ViewMsg_UpdateScrollbarTheme_Params) | 545 IPC_STRUCT_BEGIN(ViewMsg_UpdateScrollbarTheme_Params) |
544 IPC_STRUCT_MEMBER(float, initial_button_delay) | 546 IPC_STRUCT_MEMBER(float, initial_button_delay) |
545 IPC_STRUCT_MEMBER(float, autoscroll_button_delay) | 547 IPC_STRUCT_MEMBER(float, autoscroll_button_delay) |
546 IPC_STRUCT_MEMBER(bool, jump_on_track_click) | 548 IPC_STRUCT_MEMBER(bool, jump_on_track_click) |
547 IPC_STRUCT_MEMBER(blink::ScrollerStyle, preferred_scroller_style) | 549 IPC_STRUCT_MEMBER(blink::ScrollerStyle, preferred_scroller_style) |
548 IPC_STRUCT_MEMBER(bool, redraw) | 550 IPC_STRUCT_MEMBER(bool, redraw) |
549 IPC_STRUCT_MEMBER(blink::WebScrollbarButtonsPlacement, button_placement) | 551 IPC_STRUCT_MEMBER(blink::WebScrollbarButtonsPlacement, button_placement) |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
684 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 686 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
685 content::PageZoom /* function */) | 687 content::PageZoom /* function */) |
686 | 688 |
687 // Set the zoom level for a particular url that the renderer is in the | 689 // Set the zoom level for a particular url that the renderer is in the |
688 // process of loading. This will be stored, to be used if the load commits | 690 // process of loading. This will be stored, to be used if the load commits |
689 // and ignored otherwise. | 691 // and ignored otherwise. |
690 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, | 692 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, |
691 GURL /* url */, | 693 GURL /* url */, |
692 double /* zoom_level */) | 694 double /* zoom_level */) |
693 | 695 |
694 // Set the zoom level for a particular url, so all render views | |
695 // displaying this url can update their zoom levels to match. | |
696 // If scheme is empty, then only host is used for matching. | |
697 IPC_MESSAGE_CONTROL3(ViewMsg_SetZoomLevelForCurrentURL, | |
698 std::string /* scheme */, | |
699 std::string /* host */, | |
700 double /* zoom_level */) | |
701 | |
702 // Set the zoom level for a particular render view. | |
703 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForView, | |
704 bool /* uses_temporary_zoom_level */, | |
705 double /* zoom_level */) | |
706 | |
707 // Change encoding of page in the renderer. | 696 // Change encoding of page in the renderer. |
708 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, | 697 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, |
709 std::string /*new encoding name*/) | 698 std::string /*new encoding name*/) |
710 | 699 |
711 // Reset encoding of page in the renderer back to default. | 700 // Reset encoding of page in the renderer back to default. |
712 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault) | 701 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault) |
713 | 702 |
714 // Used to tell a render view whether it should expose various bindings | 703 // Used to tell a render view whether it should expose various bindings |
715 // that allow JS content extended privileges. See BindingsPolicy for valid | 704 // that allow JS content extended privileges. See BindingsPolicy for valid |
716 // flag values. | 705 // flag values. |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1311 // Instructs the browser to start plugin IME. | 1300 // Instructs the browser to start plugin IME. |
1312 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) | 1301 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) |
1313 | 1302 |
1314 // Receives content of a web page as plain text. | 1303 // Receives content of a web page as plain text. |
1315 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 1304 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
1316 #endif | 1305 #endif |
1317 | 1306 |
1318 // Adding a new message? Stick to the sort order above: first platform | 1307 // Adding a new message? Stick to the sort order above: first platform |
1319 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1308 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1320 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1309 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |