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

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

Issue 1251323002: Plumb smooth scrolling in Chromium compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 input events and other messages that require processing in 5 // IPC messages for input events and other messages that require processing in
6 // order relative to input events. 6 // order relative to input events.
7 // Multiply-included message file, hence no include guard. 7 // Multiply-included message file, hence no include guard.
8 8
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 IPC_MESSAGE_ROUTED0(InputMsg_MouseCaptureLost) 177 IPC_MESSAGE_ROUTED0(InputMsg_MouseCaptureLost)
178 178
179 // TODO(darin): figure out how this meshes with RestoreFocus 179 // TODO(darin): figure out how this meshes with RestoreFocus
180 IPC_MESSAGE_ROUTED1(InputMsg_SetFocus, 180 IPC_MESSAGE_ROUTED1(InputMsg_SetFocus,
181 bool /* enable */) 181 bool /* enable */)
182 182
183 // Tells the renderer to scroll the currently focused node into rect only if 183 // Tells the renderer to scroll the currently focused node into rect only if
184 // the currently focused node is a Text node (textfield, text area or content 184 // the currently focused node is a Text node (textfield, text area or content
185 // editable divs). 185 // editable divs).
186 IPC_MESSAGE_ROUTED1(InputMsg_ScrollFocusedEditableNodeIntoRect, gfx::Rect) 186 IPC_MESSAGE_ROUTED1(InputMsg_ScrollFocusedEditableNodeIntoRect, gfx::Rect)
187 IPC_MESSAGE_ROUTED3(InputMsg_SmoothScroll,
188 int /* targetX */,
189 int /* targetY */,
190 long /*durationMs */)
187 191
188 // These messages are typically generated from context menus and request the 192 // These messages are typically generated from context menus and request the
189 // renderer to apply the specified operation to the current selection. 193 // renderer to apply the specified operation to the current selection.
190 IPC_MESSAGE_ROUTED0(InputMsg_Undo) 194 IPC_MESSAGE_ROUTED0(InputMsg_Undo)
191 IPC_MESSAGE_ROUTED0(InputMsg_Redo) 195 IPC_MESSAGE_ROUTED0(InputMsg_Redo)
192 IPC_MESSAGE_ROUTED0(InputMsg_Cut) 196 IPC_MESSAGE_ROUTED0(InputMsg_Cut)
193 IPC_MESSAGE_ROUTED0(InputMsg_Copy) 197 IPC_MESSAGE_ROUTED0(InputMsg_Copy)
194 #if defined(OS_MACOSX) 198 #if defined(OS_MACOSX)
195 IPC_MESSAGE_ROUTED0(InputMsg_CopyToFindPboard) 199 IPC_MESSAGE_ROUTED0(InputMsg_CopyToFindPboard)
196 #endif 200 #endif
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // This IPC message sends the character bounds after every composition change 284 // This IPC message sends the character bounds after every composition change
281 // to always have correct bound info. 285 // to always have correct bound info.
282 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, 286 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged,
283 gfx::Range /* composition range */, 287 gfx::Range /* composition range */,
284 std::vector<gfx::Rect> /* character bounds */) 288 std::vector<gfx::Rect> /* character bounds */)
285 289
286 // Adding a new message? Stick to the sort order above: first platform 290 // Adding a new message? Stick to the sort order above: first platform
287 // independent InputMsg, then ifdefs for platform specific InputMsg, then 291 // independent InputMsg, then ifdefs for platform specific InputMsg, then
288 // platform independent InputHostMsg, then ifdefs for platform specific 292 // platform independent InputHostMsg, then ifdefs for platform specific
289 // InputHostMsg. 293 // InputHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698