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

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

Issue 13068002: Send vsync notification from browser to renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move ifdef'd messages to the end. Created 7 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 | Annotate | Revision Log
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/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 // locked or not. 753 // locked or not.
754 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK, 754 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK,
755 bool /* succeeded */) 755 bool /* succeeded */)
756 // Tells the render side that the mouse has been unlocked. 756 // Tells the render side that the mouse has been unlocked.
757 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost) 757 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost)
758 758
759 // Screen was rotated. Dispatched to the onorientationchange javascript API. 759 // Screen was rotated. Dispatched to the onorientationchange javascript API.
760 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, 760 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent,
761 int /* orientation */) 761 int /* orientation */)
762 762
763 // Sent by the renderer when the parameters for vsync alignment have changed. 763 // Sent by the browser when the parameters for vsync alignment have changed.
764 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters, 764 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters,
765 base::TimeTicks /* timebase */, 765 base::TimeTicks /* timebase */,
766 base::TimeDelta /* interval */) 766 base::TimeDelta /* interval */)
767 767
768 // Set the top-level frame to the provided name. 768 // Set the top-level frame to the provided name.
769 IPC_MESSAGE_ROUTED1(ViewMsg_SetName, 769 IPC_MESSAGE_ROUTED1(ViewMsg_SetName,
770 std::string /* frame_name */) 770 std::string /* frame_name */)
771 771
772 // Sent to the RenderView when a new tab is swapped into an existing 772 // Sent to the RenderView when a new tab is swapped into an existing
773 // tab and the histories need to be merged. The existing tab has a history of 773 // tab and the histories need to be merged. The existing tab has a history of
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1361 1361
1362 // Notifies the renderer whether hiding/showing the top controls is enabled 1362 // Notifies the renderer whether hiding/showing the top controls is enabled
1363 // and whether or not to animate to the proper state. 1363 // and whether or not to animate to the proper state.
1364 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, 1364 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState,
1365 bool /* enable_hiding */, 1365 bool /* enable_hiding */,
1366 bool /* enable_showing */, 1366 bool /* enable_showing */,
1367 bool /* animate */) 1367 bool /* animate */)
1368 1368
1369 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) 1369 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded)
1370 1370
1371 // Sent by the browser when the display vsync signal was triggered and the
1372 // renderer should generate a new frame.
1373 IPC_MESSAGE_ROUTED1(ViewMsg_DidVSync,
1374 base::TimeTicks /* frame_time */)
1375
1371 #elif defined(OS_MACOSX) 1376 #elif defined(OS_MACOSX)
1372 // Let the RenderView know its window has changed visibility. 1377 // Let the RenderView know its window has changed visibility.
1373 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, 1378 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility,
1374 bool /* visibile */) 1379 bool /* visibile */)
1375 1380
1376 // Let the RenderView know its window's frame has changed. 1381 // Let the RenderView know its window's frame has changed.
1377 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, 1382 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged,
1378 gfx::Rect /* window frame */, 1383 gfx::Rect /* window frame */,
1379 gfx::Rect /* content view frame */) 1384 gfx::Rect /* content view frame */)
1380 1385
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
2353 // This message is an ACK that the batch state change has been received by 2358 // This message is an ACK that the batch state change has been received by
2354 // the renderer and all IME related messages should be processed accordingly. 2359 // the renderer and all IME related messages should be processed accordingly.
2355 IPC_MESSAGE_ROUTED1(ViewHostMsg_ImeBatchStateChanged_ACK, 2360 IPC_MESSAGE_ROUTED1(ViewHostMsg_ImeBatchStateChanged_ACK,
2356 bool /* is_begin */) 2361 bool /* is_begin */)
2357 2362
2358 // This message runs the MediaCodec for decoding audio for webaudio. 2363 // This message runs the MediaCodec for decoding audio for webaudio.
2359 IPC_MESSAGE_CONTROL2(ViewHostMsg_RunWebAudioMediaCodec, 2364 IPC_MESSAGE_CONTROL2(ViewHostMsg_RunWebAudioMediaCodec,
2360 base::SharedMemoryHandle /* encoded_data_handle */, 2365 base::SharedMemoryHandle /* encoded_data_handle */,
2361 base::FileDescriptor /* pcm_output */) 2366 base::FileDescriptor /* pcm_output */)
2362 2367
2368 // Sent by renderer to request a ViewMsg_VSync message for upcoming display
2369 // vsync events. If |enabled| is true, the vsync message will continue to be be
2370 // delivered until the notification is disabled.
2371 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetVSyncNotificationEnabled,
2372 bool /* enabled */)
2373
2363 #elif defined(OS_MACOSX) 2374 #elif defined(OS_MACOSX)
2364 // Request that the browser load a font into shared memory for us. 2375 // Request that the browser load a font into shared memory for us.
2365 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, 2376 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont,
2366 FontDescriptor /* font to load */, 2377 FontDescriptor /* font to load */,
2367 uint32 /* buffer size */, 2378 uint32 /* buffer size */,
2368 base::SharedMemoryHandle /* font data */, 2379 base::SharedMemoryHandle /* font data */,
2369 uint32 /* font id */) 2380 uint32 /* font id */)
2370 2381
2371 // On OSX, we cannot allocated shared memory from within the sandbox, so 2382 // On OSX, we cannot allocated shared memory from within the sandbox, so
2372 // this call exists for the renderer to ask the browser to allocate memory 2383 // this call exists for the renderer to ask the browser to allocate memory
(...skipping 27 matching lines...) Expand all
2400 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 2411 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
2401 // for details. 2412 // for details.
2402 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 2413 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
2403 LOGFONT /* font_data */, 2414 LOGFONT /* font_data */,
2404 string16 /* characters */) 2415 string16 /* characters */)
2405 #endif 2416 #endif
2406 2417
2407 // Adding a new message? Stick to the sort order above: first platform 2418 // Adding a new message? Stick to the sort order above: first platform
2408 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2419 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2409 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2420 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | content/renderer/gpu/compositor_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698