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

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 570048: Add zoom extension API (Closed)
Patch Set: Zoom extension API with docs and examples Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include <map> 5 #include <map>
6 #include <set> 6 #include <set>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 417
418 // Change the zoom level for the current main frame. If the level actually 418 // Change the zoom level for the current main frame. If the level actually
419 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser 419 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
420 // telling it what url got zoomed and what its current zoom level is. 420 // telling it what url got zoomed and what its current zoom level is.
421 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, 421 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom,
422 PageZoom::Function /* function */) 422 PageZoom::Function /* function */)
423 423
424 // Set the zoom level for the current main frame. If the level actually 424 // Set the zoom level for the current main frame. If the level actually
425 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser 425 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
426 // telling it what url got zoomed and what its current zoom level is. 426 // telling it what url got zoomed and what its current zoom level is.
427 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel, 427 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevel,
428 int /* request_id */,
428 double /* zoom_level */) 429 double /* zoom_level */)
429 430
430 // Set the zoom level for a particular url that the renderer is in the 431 // Set the zoom level for a particular url that the renderer is in the
431 // process of loading. This will be stored, to be used if the load commits 432 // process of loading. This will be stored, to be used if the load commits
432 // and ignored otherwise. 433 // and ignored otherwise.
433 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, 434 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL,
434 GURL /* url */, 435 GURL /* url */,
435 double /* zoom_level */) 436 double /* zoom_level */)
436 437
437 // Set the zoom level for a particular url, so all render views 438 // Set the zoom level for a particular url, so all render views
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1872 1873
1873 // Sent by the renderer process to acknowledge receipt of a 1874 // Sent by the renderer process to acknowledge receipt of a
1874 // UploadProgress message. 1875 // UploadProgress message.
1875 IPC_MESSAGE_ROUTED1(ViewHostMsg_UploadProgress_ACK, 1876 IPC_MESSAGE_ROUTED1(ViewHostMsg_UploadProgress_ACK,
1876 int /* request_id */) 1877 int /* request_id */)
1877 1878
1878 // Sent when the renderer changes the zoom level for a particular url, so the 1879 // Sent when the renderer changes the zoom level for a particular url, so the
1879 // browser can update its records. If remember is true, then url is used to 1880 // browser can update its records. If remember is true, then url is used to
1880 // update the zoom level for all pages in that site. Otherwise, the render 1881 // update the zoom level for all pages in that site. Otherwise, the render
1881 // view's id is used so that only the menu is updated. 1882 // view's id is used so that only the menu is updated.
1882 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL, 1883 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidZoomURL,
1884 int /* request_id */,
1883 double /* zoom_level */, 1885 double /* zoom_level */,
1884 bool /* remember */, 1886 bool /* remember */,
1885 GURL /* url */) 1887 GURL /* url */)
1886 1888
1887 #if defined(OS_WIN) 1889 #if defined(OS_WIN)
1888 // Duplicates a shared memory handle from the renderer to the browser. Then 1890 // Duplicates a shared memory handle from the renderer to the browser. Then
1889 // the renderer can flush the handle. 1891 // the renderer can flush the handle.
1890 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_DuplicateSection, 1892 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_DuplicateSection,
1891 base::SharedMemoryHandle /* renderer handle */, 1893 base::SharedMemoryHandle /* renderer handle */,
1892 base::SharedMemoryHandle /* browser handle */) 1894 base::SharedMemoryHandle /* browser handle */)
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
2521 // The currently displayed PDF has an unsupported feature. 2523 // The currently displayed PDF has an unsupported feature.
2522 IPC_MESSAGE_ROUTED0(ViewHostMsg_PDFHasUnsupportedFeature) 2524 IPC_MESSAGE_ROUTED0(ViewHostMsg_PDFHasUnsupportedFeature)
2523 2525
2524 // JavaScript related messages ----------------------------------------------- 2526 // JavaScript related messages -----------------------------------------------
2525 2527
2526 // Notify the JavaScript engine in the render to change its parameters 2528 // Notify the JavaScript engine in the render to change its parameters
2527 // while performing stress testing. 2529 // while performing stress testing.
2528 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, 2530 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl,
2529 int /* cmd */, 2531 int /* cmd */,
2530 int /* param */) 2532 int /* param */)
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/examples/api/tabs/zoom/popup.html ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698