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

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: Send zoom change notifications for updates triggered by default page zoom changes. 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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame) 783 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame)
784 784
785 // Send to the RenderFrame to set text tracks state and style settings. 785 // Send to the RenderFrame to set text tracks state and style settings.
786 // Sent for top-level frames. 786 // Sent for top-level frames.
787 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings, 787 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings,
788 FrameMsg_TextTrackSettings_Params /* params */) 788 FrameMsg_TextTrackSettings_Params /* params */)
789 789
790 // Posts a message from a frame in another process to the current renderer. 790 // Posts a message from a frame in another process to the current renderer.
791 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params) 791 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params)
792 792
793 // Instructs the frame to set its zoom level to match the owning WebContents.
794 IPC_MESSAGE_ROUTED2(FrameMsg_SetTemporaryZoomLevel,
795 double /* zoom_level*/,
796 bool /* is_temporary */)
797
798 // Instructs the frame to set its zoom level to match the owning WebContents.
799 IPC_MESSAGE_ROUTED1(FrameMsg_SetZoomLevelFromWebContents,
800 double /* zoom_level*/)
801
793 #if defined(OS_ANDROID) 802 #if defined(OS_ANDROID)
794 // 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.
795 // 804 //
796 // 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|
797 // should be the version number from the FrameHostMsg_FindMatchRects_Reply 806 // should be the version number from the FrameHostMsg_FindMatchRects_Reply
798 // 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.
799 // Otherwise just pass -1 to always receive the list of rects. 808 // Otherwise just pass -1 to always receive the list of rects.
800 // 809 //
801 // 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
802 // 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
1457 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, 1466 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
1458 int /* version */, 1467 int /* version */,
1459 std::vector<gfx::RectF> /* rects */, 1468 std::vector<gfx::RectF> /* rects */,
1460 gfx::RectF /* active_rect */) 1469 gfx::RectF /* active_rect */)
1461 #endif 1470 #endif
1462 1471
1463 // 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
1464 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1473 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1465 // platform independent FrameHostMsg, then ifdefs for platform specific 1474 // platform independent FrameHostMsg, then ifdefs for platform specific
1466 // FrameHostMsg. 1475 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698