| Summary: | [iOS] Inspector View Indication Support | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||||||
| Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | commit-queue, joepeck, simon.fraser, thorton, timothy | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Joseph Pecoraro
2014-03-24 19:44:40 PDT
Created attachment 227716 [details]
[PATCH] Proposed Fix
Comment on attachment 227716 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=227716&action=review > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:1097 > +- (void)_startIndicatingView "indicatingView" is ambiguous and not really good English. It should be read as -(UIView*)indicatingView, but I think you mean it as the view is "indicating the state of being inspected". How about showShowingInspectionIndication/indicator? Or -(void)setIsShowingInspectionIndicator:(BOOL)? > Source/WebKit2/UIProcess/PageClient.h:255 > + virtual void startIndicatingView() = 0; > + virtual void stopIndicatingView() = 0; Same bad naming. > Source/WebKit2/UIProcess/ios/WKContentView.mm:64 > +@interface IndicateView : UIView I think this class name should contain "inspector". It should have a prefix (WK or Web?), maybe with an underscore. Web/WKInspectorIndicationView? I'm OK with the patch, BTW, but I do object to the naming. Created attachment 227780 [details]
[PATCH] Renamed methods and classes
Attachment 227780 [details] did not pass style-queue:
ERROR: Source/WebKit2/UIProcess/ios/WKContentView.h:56: Missing spaces around = [whitespace/operators] [4]
Total errors found: 1 in 15 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 227780 [details] [PATCH] Renamed methods and classes View in context: https://bugs.webkit.org/attachment.cgi?id=227780&action=review > Source/WebKit2/UIProcess/WebPageProxy.h:1325 > + void startIndicating(); > + void stopIndicating(); "indicating" is still too vague here. There may be many kinds of indication, of which Inspector overlays may be just one. > Source/WebKit2/WebProcess/WebPage/WebPage.h:472 > + void indicate(); > + void hideIndication(); Also too vague, and annoyingly different terminology to that on PageClient. Created attachment 227787 [details]
[PATCH] More renames
Attachment 227787 [details] did not pass style-queue:
ERROR: Source/WebKit2/UIProcess/ios/WKContentView.h:56: Missing spaces around = [whitespace/operators] [4]
Total errors found: 1 in 24 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 227787 [details] [PATCH] More renames View in context: https://bugs.webkit.org/attachment.cgi?id=227787&action=review > Source/WebKit/mac/WebView/WebView.mm:1896 > +- (void)setShowingInspectorIndication:(BOOL)enabled enabled -> showing? This landed in http://trac.webkit.org/changeset/166257 as far as I can tell. Yes it did, thanks! |