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

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

Issue 326403002: Merge ViewHostMsg_TextInputTypeChanged and ViewHostMsg_TextInputStateChanged into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed. Created 6 years, 6 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 IPC_STRUCT_MEMBER(bool, right_aligned) 356 IPC_STRUCT_MEMBER(bool, right_aligned)
357 357
358 // Whether this is a multi-select popup. 358 // Whether this is a multi-select popup.
359 IPC_STRUCT_MEMBER(bool, allow_multiple_selection) 359 IPC_STRUCT_MEMBER(bool, allow_multiple_selection)
360 IPC_STRUCT_END() 360 IPC_STRUCT_END()
361 361
362 IPC_STRUCT_BEGIN(ViewHostMsg_TextInputState_Params) 362 IPC_STRUCT_BEGIN(ViewHostMsg_TextInputState_Params)
363 // The type of input field 363 // The type of input field
364 IPC_STRUCT_MEMBER(ui::TextInputType, type) 364 IPC_STRUCT_MEMBER(ui::TextInputType, type)
365 365
366 // The mode of input field
367 IPC_STRUCT_MEMBER(ui::TextInputMode, mode)
368
366 // The value of the input field 369 // The value of the input field
367 IPC_STRUCT_MEMBER(std::string, value) 370 IPC_STRUCT_MEMBER(std::string, value)
368 371
369 // The cursor position of the current selection start, or the caret position 372 // The cursor position of the current selection start, or the caret position
370 // if nothing is selected 373 // if nothing is selected
371 IPC_STRUCT_MEMBER(int, selection_start) 374 IPC_STRUCT_MEMBER(int, selection_start)
372 375
373 // The cursor position of the current selection end, or the caret position 376 // The cursor position of the current selection end, or the caret position
374 // if nothing is selected 377 // if nothing is selected
375 IPC_STRUCT_MEMBER(int, selection_end) 378 IPC_STRUCT_MEMBER(int, selection_end)
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after
1407 1410
1408 // Tells the browser to move the focus to the next (previous if reverse is 1411 // Tells the browser to move the focus to the next (previous if reverse is
1409 // true) focusable element. 1412 // true) focusable element.
1410 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, 1413 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus,
1411 bool /* reverse */) 1414 bool /* reverse */)
1412 1415
1413 // Required for opening a date/time dialog 1416 // Required for opening a date/time dialog
1414 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog, 1417 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog,
1415 ViewHostMsg_DateTimeDialogValue_Params /* value */) 1418 ViewHostMsg_DateTimeDialogValue_Params /* value */)
1416 1419
1417 IPC_MESSAGE_ROUTED3(ViewHostMsg_TextInputTypeChanged,
1418 ui::TextInputType /* TextInputType of the focused node */,
1419 ui::TextInputMode /* TextInputMode of the focused node */,
1420 bool /* can_compose_inline in the focused node */)
1421
1422 // Required for updating text input state. 1420 // Required for updating text input state.
1423 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, 1421 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged,
1424 ViewHostMsg_TextInputState_Params /* input state params */) 1422 ViewHostMsg_TextInputState_Params /* input state params */)
1425 1423
1426 // Required for cancelling an ongoing input method composition. 1424 // Required for cancelling an ongoing input method composition.
1427 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) 1425 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition)
1428 1426
1429 // Sent when the renderer changes the zoom level for a particular url, so the 1427 // Sent when the renderer changes the zoom level for a particular url, so the
1430 // browser can update its records. If the view is a plugin doc, then url is 1428 // browser can update its records. If the view is a plugin doc, then url is
1431 // used to update the zoom level for all pages in that site. Otherwise, the 1429 // used to update the zoom level for all pages in that site. Otherwise, the
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 // synchronously (see crbug.com/120597). This IPC message sends the character 1712 // synchronously (see crbug.com/120597). This IPC message sends the character
1715 // bounds after every composition change to always have correct bound info. 1713 // bounds after every composition change to always have correct bound info.
1716 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 1714 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
1717 gfx::Range /* composition range */, 1715 gfx::Range /* composition range */,
1718 std::vector<gfx::Rect> /* character bounds */) 1716 std::vector<gfx::Rect> /* character bounds */)
1719 #endif 1717 #endif
1720 1718
1721 // Adding a new message? Stick to the sort order above: first platform 1719 // Adding a new message? Stick to the sort order above: first platform
1722 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1720 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1723 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1721 // 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