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

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

Issue 1249013005: Merge ViewHostMsg_TextInputTypeChanged and ViewHostMsg_TextInputStateChanged into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments. 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) 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/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 IPC_STRUCT_MEMBER(blink::WebTextDirection, anchor_dir) 388 IPC_STRUCT_MEMBER(blink::WebTextDirection, anchor_dir)
389 IPC_STRUCT_MEMBER(gfx::Rect, focus_rect) 389 IPC_STRUCT_MEMBER(gfx::Rect, focus_rect)
390 IPC_STRUCT_MEMBER(blink::WebTextDirection, focus_dir) 390 IPC_STRUCT_MEMBER(blink::WebTextDirection, focus_dir)
391 IPC_STRUCT_MEMBER(bool, is_anchor_first) 391 IPC_STRUCT_MEMBER(bool, is_anchor_first)
392 IPC_STRUCT_END() 392 IPC_STRUCT_END()
393 393
394 IPC_STRUCT_BEGIN(ViewHostMsg_TextInputState_Params) 394 IPC_STRUCT_BEGIN(ViewHostMsg_TextInputState_Params)
395 // The type of input field 395 // The type of input field
396 IPC_STRUCT_MEMBER(ui::TextInputType, type) 396 IPC_STRUCT_MEMBER(ui::TextInputType, type)
397 397
398 // The mode of input field
399 IPC_STRUCT_MEMBER(ui::TextInputMode, mode)
400
398 // The flags of the input field (autocorrect, autocomplete, etc.) 401 // The flags of the input field (autocorrect, autocomplete, etc.)
399 IPC_STRUCT_MEMBER(int, flags) 402 IPC_STRUCT_MEMBER(int, flags)
400 403
401 // The value of the input field 404 // The value of the input field
402 IPC_STRUCT_MEMBER(std::string, value) 405 IPC_STRUCT_MEMBER(std::string, value)
403 406
404 // The cursor position of the current selection start, or the caret position 407 // The cursor position of the current selection start, or the caret position
405 // if nothing is selected 408 // if nothing is selected
406 IPC_STRUCT_MEMBER(int, selection_start) 409 IPC_STRUCT_MEMBER(int, selection_start)
407 410
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 1354
1352 // Tells the browser to move the focus to the next (previous if reverse is 1355 // Tells the browser to move the focus to the next (previous if reverse is
1353 // true) focusable element. 1356 // true) focusable element.
1354 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, 1357 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus,
1355 bool /* reverse */) 1358 bool /* reverse */)
1356 1359
1357 // Required for opening a date/time dialog 1360 // Required for opening a date/time dialog
1358 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog, 1361 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog,
1359 ViewHostMsg_DateTimeDialogValue_Params /* value */) 1362 ViewHostMsg_DateTimeDialogValue_Params /* value */)
1360 1363
1361 IPC_MESSAGE_ROUTED4(ViewHostMsg_TextInputTypeChanged,
1362 ui::TextInputType /* TextInputType of the focused node */,
1363 ui::TextInputMode /* TextInputMode of the focused node */,
1364 bool /* can_compose_inline in the focused node */,
1365 int /* flags in the focused node */)
1366
1367 // Required for updating text input state. 1364 // Required for updating text input state.
1368 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, 1365 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged,
1369 ViewHostMsg_TextInputState_Params /* input state params */) 1366 ViewHostMsg_TextInputState_Params /* input state params */)
1370 1367
1371 // Sent when the renderer changes the zoom level for a particular url, so the 1368 // Sent when the renderer changes the zoom level for a particular url, so the
1372 // browser can update its records. If the view is a plugin doc, then url is 1369 // browser can update its records. If the view is a plugin doc, then url is
1373 // used to update the zoom level for all pages in that site. Otherwise, the 1370 // used to update the zoom level for all pages in that site. Otherwise, the
1374 // render view's id is used so that only the menu is updated. 1371 // render view's id is used so that only the menu is updated.
1375 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL, 1372 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL,
1376 double /* zoom_level */, 1373 double /* zoom_level */,
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1583 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 1580 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
1584 // for details. 1581 // for details.
1585 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 1582 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
1586 LOGFONT /* font_data */, 1583 LOGFONT /* font_data */,
1587 base::string16 /* characters */) 1584 base::string16 /* characters */)
1588 #endif 1585 #endif
1589 1586
1590 // Adding a new message? Stick to the sort order above: first platform 1587 // Adding a new message? Stick to the sort order above: first platform
1591 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1588 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1592 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1589 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | content/renderer/npapi/webplugin_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698