[Webkit-unassigned] [Bug 19456] [GTK] Editing capabilities
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 29 09:48:34 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=19456
Gustavo Noronha (kov) <gns at gnome.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #45143|review? |review-
Flag| |
--- Comment #7 from Gustavo Noronha (kov) <gns at gnome.org> 2009-12-29 09:48:33 PST ---
(From update of attachment 45143)
> +#if PLATFORM(GTK)
> + if (!m_frame->editor()->client()->shouldExecuteCommand(m_command->value (m_frame.get(), triggeringEvent)))
> + return false;
> +#endif
Indentation seems off. I think we should not make this gtk-specific. Just add a
call to shouldExecuteCommand, and make the default implementation for all ports
except ours be return true;
> +
> +#if PLATFORM(GTK)
> + virtual bool shouldExecuteCommand(const String&) = 0;
> +#endif
Same here. Just add the function, and make sure to add it to all the ports.
> + /**
> + * WebKitWebView::command-executed:
Perhaps we should name this editor-command, and get away with the 'executed'
part? The command has not really been executed yet - it will be.
> + * Since: 1.1.14
1.1.19, I guess =)
> + webkit_web_view_signals[RESOURCE_REQUEST_STARTING] = g_signal_new("command-executed",
wrong index
> +/**
> + * webkit_web_view_execute_command:
I don't like 'execute_command'. It is too generic, and it's not really easy to
figure out what we are talking about. I would prefer
webkit_web_view_execute_editor_command, or editing_command.
> + * @web_view: a #WebKitWebView
> + * @command: a command string
> + *
> + * Executes the specified command, if possible.
What makes it not possible? We should document that the command will be
executed in the focused frame.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list