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

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

Issue 1804023002: Fix page zoom to be frame-centric for out-of-process frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove 'anonymous'. Created 4 years, 7 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 IPC_STRUCT_MEMBER(content::ResizeParams, initial_size) 504 IPC_STRUCT_MEMBER(content::ResizeParams, initial_size)
506 505
507 // Whether to enable auto-resize. 506 // Whether to enable auto-resize.
508 IPC_STRUCT_MEMBER(bool, enable_auto_resize) 507 IPC_STRUCT_MEMBER(bool, enable_auto_resize)
509 508
510 // The minimum size to layout the page if auto-resize is enabled. 509 // The minimum size to layout the page if auto-resize is enabled.
511 IPC_STRUCT_MEMBER(gfx::Size, min_size) 510 IPC_STRUCT_MEMBER(gfx::Size, min_size)
512 511
513 // The maximum size to layout the page if auto-resize is enabled. 512 // The maximum size to layout the page if auto-resize is enabled.
514 IPC_STRUCT_MEMBER(gfx::Size, max_size) 513 IPC_STRUCT_MEMBER(gfx::Size, max_size)
514
515 // The page zoom level.
516 IPC_STRUCT_MEMBER(double, page_zoom_level)
515 IPC_STRUCT_END() 517 IPC_STRUCT_END()
516 518
517 #if defined(OS_MACOSX) 519 #if defined(OS_MACOSX)
518 IPC_STRUCT_BEGIN(ViewMsg_UpdateScrollbarTheme_Params) 520 IPC_STRUCT_BEGIN(ViewMsg_UpdateScrollbarTheme_Params)
519 IPC_STRUCT_MEMBER(float, initial_button_delay) 521 IPC_STRUCT_MEMBER(float, initial_button_delay)
520 IPC_STRUCT_MEMBER(float, autoscroll_button_delay) 522 IPC_STRUCT_MEMBER(float, autoscroll_button_delay)
521 IPC_STRUCT_MEMBER(bool, jump_on_track_click) 523 IPC_STRUCT_MEMBER(bool, jump_on_track_click)
522 IPC_STRUCT_MEMBER(blink::ScrollerStyle, preferred_scroller_style) 524 IPC_STRUCT_MEMBER(blink::ScrollerStyle, preferred_scroller_style)
523 IPC_STRUCT_MEMBER(bool, redraw) 525 IPC_STRUCT_MEMBER(bool, redraw)
524 IPC_STRUCT_MEMBER(blink::WebScrollbarButtonsPlacement, button_placement) 526 IPC_STRUCT_MEMBER(blink::WebScrollbarButtonsPlacement, button_placement)
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, 661 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom,
660 content::PageZoom /* function */) 662 content::PageZoom /* function */)
661 663
662 // Set the zoom level for a particular url that the renderer is in the 664 // Set the zoom level for a particular url that the renderer is in the
663 // process of loading. This will be stored, to be used if the load commits 665 // process of loading. This will be stored, to be used if the load commits
664 // and ignored otherwise. 666 // and ignored otherwise.
665 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, 667 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL,
666 GURL /* url */, 668 GURL /* url */,
667 double /* zoom_level */) 669 double /* zoom_level */)
668 670
669 // Set the zoom level for a particular url, so all render views
670 // displaying this url can update their zoom levels to match.
671 // If scheme is empty, then only host is used for matching.
672 IPC_MESSAGE_CONTROL3(ViewMsg_SetZoomLevelForCurrentURL,
673 std::string /* scheme */,
674 std::string /* host */,
675 double /* zoom_level */)
676
677 // Set the zoom level for a particular render view.
678 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForView,
679 bool /* uses_temporary_zoom_level */,
680 double /* zoom_level */)
681
682 // Change encoding of page in the renderer. 671 // Change encoding of page in the renderer.
683 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, 672 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding,
684 std::string /*new encoding name*/) 673 std::string /*new encoding name*/)
685 674
686 // Reset encoding of page in the renderer back to default. 675 // Reset encoding of page in the renderer back to default.
687 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault) 676 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault)
688 677
689 // Used to tell a render view whether it should expose various bindings 678 // Used to tell a render view whether it should expose various bindings
690 // that allow JS content extended privileges. See BindingsPolicy for valid 679 // that allow JS content extended privileges. See BindingsPolicy for valid
691 // flag values. 680 // flag values.
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 int /* y */) 1247 int /* y */)
1259 1248
1260 #elif defined(OS_MACOSX) 1249 #elif defined(OS_MACOSX)
1261 // Receives content of a web page as plain text. 1250 // Receives content of a web page as plain text.
1262 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) 1251 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string)
1263 #endif 1252 #endif
1264 1253
1265 // Adding a new message? Stick to the sort order above: first platform 1254 // Adding a new message? Stick to the sort order above: first platform
1266 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1255 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1267 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1256 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698