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

Side by Side Diff: content/common/frame_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: Address alexmos@ comments, run two experiments. Created 4 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 interacting with frames. 5 // IPC messages for interacting with frames.
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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame) 784 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame)
785 785
786 // Send to the RenderFrame to set text tracks state and style settings. 786 // Send to the RenderFrame to set text tracks state and style settings.
787 // Sent for top-level frames. 787 // Sent for top-level frames.
788 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings, 788 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings,
789 FrameMsg_TextTrackSettings_Params /* params */) 789 FrameMsg_TextTrackSettings_Params /* params */)
790 790
791 // Posts a message from a frame in another process to the current renderer. 791 // Posts a message from a frame in another process to the current renderer.
792 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params) 792 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params)
793 793
794 // Instructs the frame to set its zoom level to match the owning WebContents.
795 IPC_MESSAGE_ROUTED2(FrameMsg_SetTemporaryZoomLevel,
796 double /* zoom_level*/,
797 bool /* is_temporary */)
798
799 // Instructs the frame to set its zoom level to match the owning WebContents.
800 IPC_MESSAGE_ROUTED1(FrameMsg_SetPageZoomLevel, double /* zoom_level*/)
801
794 #if defined(OS_ANDROID) 802 #if defined(OS_ANDROID)
795 // Sent when the browser wants the bounding boxes of the current find matches. 803 // Sent when the browser wants the bounding boxes of the current find matches.
796 // 804 //
797 // If match rects are already cached on the browser side, |current_version| 805 // If match rects are already cached on the browser side, |current_version|
798 // should be the version number from the FrameHostMsg_FindMatchRects_Reply 806 // should be the version number from the FrameHostMsg_FindMatchRects_Reply
799 // they came in, so the renderer can tell if it needs to send updated rects. 807 // they came in, so the renderer can tell if it needs to send updated rects.
800 // Otherwise just pass -1 to always receive the list of rects. 808 // Otherwise just pass -1 to always receive the list of rects.
801 // 809 //
802 // There must be an active search string (it is probably most useful to call 810 // There must be an active search string (it is probably most useful to call
803 // this immediately after a FrameHostMsg_Find_Reply message arrives with 811 // this immediately after a FrameHostMsg_Find_Reply message arrives with
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1458 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, 1466 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
1459 int /* version */, 1467 int /* version */,
1460 std::vector<gfx::RectF> /* rects */, 1468 std::vector<gfx::RectF> /* rects */,
1461 gfx::RectF /* active_rect */) 1469 gfx::RectF /* active_rect */)
1462 #endif 1470 #endif
1463 1471
1464 // Adding a new message? Stick to the sort order above: first platform 1472 // Adding a new message? Stick to the sort order above: first platform
1465 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1473 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1466 // platform independent FrameHostMsg, then ifdefs for platform specific 1474 // platform independent FrameHostMsg, then ifdefs for platform specific
1467 // FrameHostMsg. 1475 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698