WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
173355
[GTK] Use API::InjectedBundle::EditorClient in WebKitWebEditor
https://bugs.webkit.org/show_bug.cgi?id=173355
Summary
[GTK] Use API::InjectedBundle::EditorClient in WebKitWebEditor
Carlos Garcia Campos
Reported
2017-06-14 01:11:54 PDT
Instead of the C API.
Attachments
Patch
(2.94 KB, patch)
2017-06-14 01:13 PDT
,
Carlos Garcia Campos
zan
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2017-06-14 01:13:08 PDT
Created
attachment 312869
[details]
Patch
Zan Dobersek
Comment 2
2017-06-14 02:40:58 PDT
Comment on
attachment 312869
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=312869&action=review
> Source/WebKit2/WebProcess/InjectedBundle/API/gtk/WebKitWebEditor.cpp:85 > + void didChangeSelection(WebPage&, StringImpl* /*notificationName*/) override
Consider UNUSED_PARAM(notificationName), or just not listing the argument name.
Carlos Garcia Campos
Comment 3
2017-06-14 03:49:29 PDT
Committed
r218251
: <
http://trac.webkit.org/changeset/218251
>
Darin Adler
Comment 4
2017-06-14 07:39:19 PDT
Comment on
attachment 312869
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=312869&action=review
>> Source/WebKit2/WebProcess/InjectedBundle/API/gtk/WebKitWebEditor.cpp:85 >> + void didChangeSelection(WebPage&, StringImpl* /*notificationName*/) override > > Consider UNUSED_PARAM(notificationName), or just not listing the argument name.
For what it’s worth, I consider commenting out the name to be better than UNUSED_PARAM. I see UNUSED_PARAM as a necessary evil that we try to avoid, since it doesn’t even work -- it silences the warning, but doesn’t prevent use of the thing it marks as "unused"! But maybe we don’t have consensus on that.
Michael Catanzaro
Comment 5
2017-06-14 08:48:35 PDT
UNUSED_PARAM should be used in cases where the parameter is used in one preprocessor conditional but not another. Otherwise, it's better to either comment out or omit the name.
Darin Adler
Comment 6
2017-06-14 16:34:18 PDT
(In reply to Michael Catanzaro from
comment #5
)
> UNUSED_PARAM should be used in cases where the parameter is used in one > preprocessor conditional but not another. Otherwise, it's better to either > comment out or omit the name.
Yes, I agree with that.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug