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

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: Created 7 years, 9 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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 // locked or not. 743 // locked or not.
744 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK, 744 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK,
745 bool /* succeeded */) 745 bool /* succeeded */)
746 // Tells the render side that the mouse has been unlocked. 746 // Tells the render side that the mouse has been unlocked.
747 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost) 747 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost)
748 748
749 // Screen was rotated. Dispatched to the onorientationchange javascript API. 749 // Screen was rotated. Dispatched to the onorientationchange javascript API.
750 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, 750 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent,
751 int /* orientation */) 751 int /* orientation */)
752 752
753 // Sent by the renderer when the parameters for vsync alignment have changed. 753 // Sent by the browser when the parameters for vsync alignment have changed.
754 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters, 754 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters,
755 base::TimeTicks /* timebase */, 755 base::TimeTicks /* timebase */,
756 base::TimeDelta /* interval */) 756 base::TimeDelta /* interval */)
757 757
758 // Sent by renderer to request a ViewMsg_VSync message for upcoming display
759 // vsync events. If |enabled| is true, the vsync message will continue to be be
760 // delivered until the notification is disabled.
761 IPC_MESSAGE_ROUTED1(ViewHostMsg_EnableVSyncNotification,
762 bool /* enabled */)
763
764 // Sent by the browser when the display vsync signal was triggered and the
765 // renderer should generate a new frame.
766 IPC_MESSAGE_ROUTED1(ViewMsg_DidVSync,
767 base::TimeTicks /* frame_time */)
768
758 // Set the top-level frame to the provided name. 769 // Set the top-level frame to the provided name.
759 IPC_MESSAGE_ROUTED1(ViewMsg_SetName, 770 IPC_MESSAGE_ROUTED1(ViewMsg_SetName,
760 std::string /* frame_name */) 771 std::string /* frame_name */)
761 772
762 // Sent to the RenderView when a new tab is swapped into an existing 773 // Sent to the RenderView when a new tab is swapped into an existing
763 // tab and the histories need to be merged. The existing tab has a history of 774 // tab and the histories need to be merged. The existing tab has a history of
764 // |merged_history_length| which precedes the history of the new tab. All 775 // |merged_history_length| which precedes the history of the new tab. All
765 // page_ids >= |minimum_page_id| in the new tab are appended to the history. 776 // page_ids >= |minimum_page_id| in the new tab are appended to the history.
766 // 777 //
767 // For example, suppose the history of page_ids in the new tab's RenderView 778 // For example, suppose the history of page_ids in the new tab's RenderView
(...skipping 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after
2375 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 2386 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
2376 // for details. 2387 // for details.
2377 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 2388 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
2378 LOGFONT /* font_data */, 2389 LOGFONT /* font_data */,
2379 string16 /* characters */) 2390 string16 /* characters */)
2380 #endif 2391 #endif
2381 2392
2382 // Adding a new message? Stick to the sort order above: first platform 2393 // Adding a new message? Stick to the sort order above: first platform
2383 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2394 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2384 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2395 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698