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

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

Issue 954923005: Make command-zero reset page scale in addition to zoom level (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests Created 5 years, 10 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 "base/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 // Tells the renderer to perform the given action on the plugin located at 682 // Tells the renderer to perform the given action on the plugin located at
683 // the given point. 683 // the given point.
684 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, 684 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt,
685 gfx::Point, /* location */ 685 gfx::Point, /* location */
686 blink::WebPluginAction) 686 blink::WebPluginAction)
687 687
688 // Posts a message from a frame in another process to the current renderer. 688 // Posts a message from a frame in another process to the current renderer.
689 IPC_MESSAGE_ROUTED1(ViewMsg_PostMessageEvent, 689 IPC_MESSAGE_ROUTED1(ViewMsg_PostMessageEvent,
690 ViewMsg_PostMessage_Params) 690 ViewMsg_PostMessage_Params)
691 691
692 // Resets the page scale for the current main frame to the default page scale.
693 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageScale)
694
692 // Change the zoom level for the current main frame. If the level actually 695 // Change the zoom level for the current main frame. If the level actually
693 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser 696 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
694 // telling it what url got zoomed and what its current zoom level is. 697 // telling it what url got zoomed and what its current zoom level is.
695 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, 698 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom,
696 content::PageZoom /* function */) 699 content::PageZoom /* function */)
697 700
698 // Set the zoom level for a particular url that the renderer is in the 701 // Set the zoom level for a particular url that the renderer is in the
699 // process of loading. This will be stored, to be used if the load commits 702 // process of loading. This will be stored, to be used if the load commits
700 // and ignored otherwise. 703 // and ignored otherwise.
701 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, 704 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL,
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
1654 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 1657 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
1655 // for details. 1658 // for details.
1656 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 1659 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
1657 LOGFONT /* font_data */, 1660 LOGFONT /* font_data */,
1658 base::string16 /* characters */) 1661 base::string16 /* characters */)
1659 #endif 1662 #endif
1660 1663
1661 // Adding a new message? Stick to the sort order above: first platform 1664 // Adding a new message? Stick to the sort order above: first platform
1662 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1665 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1663 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1666 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698