[webkit-dev] Style question: static, protected, or public members
TAMURA, Kent
tkent at chromium.org
Thu May 20 20:54:35 PDT 2010
What's the naming rule for non-const static members?
Some classes give "s_" prefixes:
WebCore/page/DOMTimer.h: static double s_minTimerInterval;
WebCore/page/GeolocationPositionCache.h: static int s_instances;
FrameView gives "s" prefix:
WebCore/page/FrameView.h: static double sCurrentPaintTimeStamp; // used
for detecting decoded resource thrash in the cache
Settings gives "g" prefix:
WebCore/page/Settings.h: static bool gShouldPaintNativeControls;
WebCore/page/Settings.h: static bool gShouldUseHighResolutionTimers;
And what about public and protected members? The style guide has no
exceptions for them, so I think they should have m_. But many classes in
WebCore don't use m_ for public members.
--
TAMURA Kent
Software Engineer, Google
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100521/021ff341/attachment.html>
More information about the webkit-dev
mailing list