Bug 139231 - Provide a sample plugin to demonstrate the mute plugin API
Summary: Provide a sample plugin to demonstrate the mute plugin API
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ada Chan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-03 12:49 PST by Ada Chan
Modified: 2014-12-03 22:43 PST (History)
4 users (show)

See Also:


Attachments
Patch (46.22 KB, patch)
2014-12-03 12:56 PST, Ada Chan
no flags Details | Formatted Diff | Diff
Fixed some style issues (45.81 KB, patch)
2014-12-03 13:14 PST, Ada Chan
no flags Details | Formatted Diff | Diff
Fixed some style issues (45.76 KB, patch)
2014-12-03 13:27 PST, Ada Chan
andersca: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ada Chan 2014-12-03 12:49:18 PST
See https://bugs.webkit.org/show_bug.cgi?id=138105 and https://bugs.webkit.org/show_bug.cgi?id=137219 about the mute plugin API.
Comment 1 Ada Chan 2014-12-03 12:56:46 PST
Created attachment 242514 [details]
Patch
Comment 2 WebKit Commit Bot 2014-12-03 12:57:52 PST
Attachment 242514 [details] did not pass style-queue:


ERROR: Examples/NetscapeMuteAPIPlugin/AudioPlayer.mm:34:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
ERROR: Examples/NetscapeMuteAPIPlugin/AudioPlayer.mm:42:  Should not have spaces around = in property synthesis.  [whitespace/property] [4]
ERROR: Examples/NetscapeMuteAPIPlugin/AudioPlayer.mm:111:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Examples/NetscapeMuteAPIPlugin/AudioPlayer.mm:115:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Examples/NetscapeMuteAPIPlugin/AudioPlayer.mm:116:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Examples/NetscapeMuteAPIPlugin/AudioPlayer.mm:117:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Examples/NetscapeMuteAPIPlugin/AudioPlayer.mm:121:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:37:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:40:  Bad include order. Mixing system and custom headers.  [build/include_order] [4]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:65:  The parameter name "saved" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:66:  The parameter name "save" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:67:  The parameter name "window" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:68:  The parameter name "type" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:68:  The parameter name "stream" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:69:  The parameter name "stream" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:69:  The parameter name "reason" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:70:  The parameter name "stream" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:71:  The parameter name "stream" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:72:  The parameter name "stream" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:75:  The parameter name "reason" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:76:  The parameter name "variable" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:77:  The parameter name "variable" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:82:  The parameter name "pluginFuncs" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:86:  The parameter name "obj" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:236:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:266:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:303:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:351:  A case label should not be indented, but line up with its switch statement.  [whitespace/indent] [4]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:350:  Missing space before ( in switch(  [whitespace/parens] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:390:  A case label should not be indented, but line up with its switch statement.  [whitespace/indent] [4]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:405:  A case label should not be indented, but line up with its switch statement.  [whitespace/indent] [4]
ERROR: Examples/NetscapeMuteAPIPlugin/MenuHandler.m:34:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
Total errors found: 32 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Ada Chan 2014-12-03 13:14:30 PST
Created attachment 242515 [details]
Fixed some style issues
Comment 4 WebKit Commit Bot 2014-12-03 13:17:07 PST
Attachment 242515 [details] did not pass style-queue:


ERROR: Examples/NetscapeMuteAPIPlugin/AudioPlayer.mm:34:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
ERROR: Examples/NetscapeMuteAPIPlugin/AudioPlayer.mm:113:  More than one command on the same line  [whitespace/newline] [4]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:69:  The parameter name "stream" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:385:  A case label should not be indented, but line up with its switch statement.  [whitespace/indent] [4]
ERROR: Examples/NetscapeMuteAPIPlugin/main.m:400:  A case label should not be indented, but line up with its switch statement.  [whitespace/indent] [4]
ERROR: Examples/NetscapeMuteAPIPlugin/MenuHandler.m:34:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
Total errors found: 6 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Ada Chan 2014-12-03 13:27:48 PST
Created attachment 242517 [details]
Fixed some style issues
Comment 6 WebKit Commit Bot 2014-12-03 13:30:57 PST
Attachment 242517 [details] did not pass style-queue:


ERROR: Examples/NetscapeMuteAPIPlugin/AudioPlayer.mm:34:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
ERROR: Examples/NetscapeMuteAPIPlugin/AudioPlayer.mm:113:  More than one command on the same line  [whitespace/newline] [4]
ERROR: Examples/NetscapeMuteAPIPlugin/MenuHandler.m:34:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
Total errors found: 3 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 7 Ada Chan 2014-12-03 22:43:38 PST
Committed:
http://trac.webkit.org/changeset/176785