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

Unified Diff: content/common/input_messages.h

Issue 829913004: WIP: Plumbing through text selection granularity control support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unified_text_selection_diff
Patch Set: Missing file. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/DEPS ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/input_messages.h
diff --git a/content/common/input_messages.h b/content/common/input_messages.h
index 14967b4847c40c01a2ac46b406d4105979de3dbe..50401ed4697ea4acc266644abae113d994b4f4aa 100644
--- a/content/common/input_messages.h
+++ b/content/common/input_messages.h
@@ -23,6 +23,7 @@
#include "content/public/common/common_param_traits.h"
#include "ipc/ipc_message_macros.h"
#include "third_party/WebKit/public/web/WebInputEvent.h"
+#include "third_party/WebKit/public/web/WebLocalFrame.h"
#include "ui/events/ipc/latency_info_param_traits.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
@@ -47,6 +48,8 @@ IPC_ENUM_TRAITS_MAX_VALUE(
IPC_ENUM_TRAITS_MAX_VALUE(
content::SyntheticGestureParams::GestureType,
content::SyntheticGestureParams::SYNTHETIC_GESTURE_TYPE_MAX)
+IPC_ENUM_TRAITS_MAX_VALUE(blink::WebLocalFrame::TextGranularity,
+ blink::WebLocalFrame::TextGranularityLast)
IPC_ENUM_TRAITS_VALIDATE(content::TouchAction, (
value >= 0 &&
value <= content::TOUCH_ACTION_MAX &&
@@ -207,8 +210,9 @@ IPC_MESSAGE_ROUTED2(InputMsg_SelectRange,
// Requests the renderer to move the selection extent point to a new position.
// Expects a MoveRangeSelectionExtent_ACK message when finished.
-IPC_MESSAGE_ROUTED1(InputMsg_MoveRangeSelectionExtent,
- gfx::Point /* extent */)
+IPC_MESSAGE_ROUTED2(InputMsg_MoveRangeSelectionExtent,
+ gfx::Point /* extent */,
+ blink::WebLocalFrame::TextGranularity /* granularity */)
// Requests the renderer to move the caret selection toward the point.
// Expects a MoveCaret_ACK message when finished.
« no previous file with comments | « content/common/DEPS ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698