Lines Matching refs:commands
130 bool WebPage::executeKeypressCommandsInternal(const Vector<WebCore::KeypressCommand>& commands, KeyboardEvent* event)
136 for (size_t i = 0; i < commands.size(); ++i) {
137 if (commands[i].commandName == "insertText:") {
145 eventWasHandled |= frame->editor()->insertText(commands[i].text, event);
147 Editor::Command command = frame->editor()->command(commandNameForSelectorName(commands[i].commandName));
152 bool performedNonEditingBehavior = event->keyEvent()->type() == PlatformKeyboardEvent::RawKeyDown && performNonEditingBehaviorForSelector(commands[i].commandName);
157 WebProcess::shared().connection()->sendSync(Messages::WebPageProxy::ExecuteSavedCommandBySelector(commands[i].commandName),
168 ASSERT(!saveCommands || event->keypressCommands().isEmpty()); // Save commands once for each event.
175 Vector<KeypressCommand>& commands = event->keypressCommands();
186 Messages::WebPageProxy::InterpretQueuedKeyEvent::Reply(eventWasHandled, commands), m_pageID);
192 // IM-like actions are handled immediately (so the return value from UI process is true), but there are saved commands that
197 // Are there commands that could just cause text insertion if executed via Editor?
202 for (size_t i = 0; i < commands.size(); ++i) {
203 if (frame->editor()->command(commandNameForSelectorName(commands[i].commandName)).isTextInsertion())
206 // If there are no text insertion commands, default keydown handler is the right time to execute the commands.
389 void WebPage::executeKeypressCommands(const Vector<WebCore::KeypressCommand>& commands, bool& handled, EditorState& newState)
391 handled = executeKeypressCommandsInternal(commands, m_keyboardEventBeingInterpreted);
536 // FIXME: All these selectors have corresponding Editor commands, but the commands only work in editable content.