Navigation Menu

Skip to content

Commit

Permalink
[sailfishos][embedlite] Switch LOGNI() for LOGT() in places
Browse files Browse the repository at this point in the history
LOGNI: "Not implemented"
LOGT:  "Trace"

In some places where an implementation has been added, LOGNI() should be
switched for LOGT().
  • Loading branch information
llewelld committed Apr 22, 2021
1 parent eb79852 commit e925d62
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions embedding/embedlite/embedshared/EmbedLiteViewBaseParent.cpp
Expand Up @@ -134,7 +134,7 @@ EmbedLiteViewBaseParent::RecvOnLocationChanged(const nsCString& aLocation,
const bool& aCanGoBack,
const bool& aCanGoForward)
{
LOGNI();
LOGT();
NS_ENSURE_TRUE(mView && !mViewAPIDestroyed, IPC_OK());

mView->GetListener()->OnLocationChanged(aLocation.get(), aCanGoBack, aCanGoForward);
Expand All @@ -143,7 +143,7 @@ EmbedLiteViewBaseParent::RecvOnLocationChanged(const nsCString& aLocation,

mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnLoadStarted(const nsCString& aLocation)
{
LOGNI();
LOGT();
NS_ENSURE_TRUE(mView && !mViewAPIDestroyed, IPC_OK());

mView->GetListener()->OnLoadStarted(aLocation.get());
Expand All @@ -152,7 +152,7 @@ mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnLoadStarted(const nsCStri

mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnLoadFinished()
{
LOGNI();
LOGT();
NS_ENSURE_TRUE(mView && !mViewAPIDestroyed, IPC_OK());

mView->GetListener()->OnLoadFinished();
Expand All @@ -161,7 +161,7 @@ mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnLoadFinished()

mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnWindowCloseRequested()
{
LOGNI();
LOGT();
NS_ENSURE_TRUE(mView && !mViewAPIDestroyed, IPC_OK());

mView->GetListener()->OnWindowCloseRequested();
Expand All @@ -170,7 +170,7 @@ mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnWindowCloseRequested()

mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnLoadRedirect()
{
LOGNI();
LOGT();
NS_ENSURE_TRUE(mView && !mViewAPIDestroyed, IPC_OK());

mView->GetListener()->OnLoadRedirect();
Expand All @@ -179,7 +179,7 @@ mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnLoadRedirect()

mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnLoadProgress(const int32_t &aProgress, const int32_t &aCurTotal, const int32_t &aMaxTotal)
{
LOGNI("progress:%i", aProgress);
LOGT("progress:%i", aProgress);
NS_ENSURE_TRUE(mView && !mViewAPIDestroyed, IPC_OK());

mView->GetListener()->OnLoadProgress(aProgress, aCurTotal, aMaxTotal);
Expand All @@ -189,7 +189,7 @@ mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnLoadProgress(const int32_
mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnSecurityChanged(const nsCString &aStatus,
const uint32_t &aState)
{
LOGNI();
LOGT();
NS_ENSURE_TRUE(mView && !mViewAPIDestroyed, IPC_OK());

mView->GetListener()->OnSecurityChanged(aStatus.get(), aState);
Expand All @@ -199,7 +199,7 @@ mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnSecurityChanged(const nsC
mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnFirstPaint(const int32_t &aX,
const int32_t &aY)
{
LOGNI();
LOGT();
NS_ENSURE_TRUE(mView && !mViewAPIDestroyed, IPC_OK());

mView->GetListener()->OnFirstPaint(aX, aY);
Expand All @@ -209,7 +209,7 @@ mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnFirstPaint(const int32_t
mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnScrolledAreaChanged(const uint32_t &aWidth,
const uint32_t &aHeight)
{
LOGNI("area[%u,%u]", aWidth, aHeight);
LOGT("area[%u,%u]", aWidth, aHeight);
NS_ENSURE_TRUE(mView && !mViewAPIDestroyed, IPC_OK());

mView->GetListener()->OnScrolledAreaChanged(aWidth, aHeight);
Expand All @@ -219,7 +219,7 @@ mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnScrolledAreaChanged(const
mozilla::ipc::IPCResult EmbedLiteViewBaseParent::RecvOnScrollChanged(const int32_t& offSetX,
const int32_t& offSetY)
{
LOGNI("off[%i,%i]", offSetX, offSetY);
LOGT("off[%i,%i]", offSetX, offSetY);
NS_ENSURE_TRUE(mView && !mViewAPIDestroyed, IPC_OK());

mView->GetListener()->OnScrollChanged(offSetX, offSetY);
Expand Down
6 changes: 3 additions & 3 deletions embedding/embedlite/embedshared/PuppetWidgetBase.cpp
Expand Up @@ -148,7 +148,7 @@ PuppetWidgetBase::ConstrainPosition(bool, int32_t *aX, int32_t *aY)
{
*aX = kMaxDimension;
*aY = kMaxDimension;
LOGNI();
LOGT();
}

// We're always at <0, 0>, and so ignore move requests.
Expand Down Expand Up @@ -214,14 +214,14 @@ PuppetWidgetBase::Resize(double aX, double aY, double aWidth, double aHeight, bo
void
PuppetWidgetBase::Enable(bool aState)
{
LOGNI();
LOGT();
mEnabled = aState;
}

bool
PuppetWidgetBase::IsEnabled() const
{
LOGNI();
LOGT();
return mEnabled;
}

Expand Down
2 changes: 1 addition & 1 deletion embedding/embedlite/embedthread/EmbedContentController.cpp
Expand Up @@ -137,7 +137,7 @@ void EmbedContentController::DoSendScrollEvent(const FrameMetrics aFrameMetrics)
contentRect.MoveTo(aFrameMetrics.GetScrollOffset());
CSSSize scrollableSize = aFrameMetrics.GetScrollableRect().Size();

LOGNI("contentR[%g,%g,%g,%g], scrSize[%g,%g]",
LOGT("contentR[%g,%g,%g,%g], scrSize[%g,%g]",
contentRect.x, contentRect.y, contentRect.width, contentRect.height,
scrollableSize.width, scrollableSize.height);
gfxRect rect(contentRect.x, contentRect.y, contentRect.width, contentRect.height);
Expand Down
2 changes: 1 addition & 1 deletion embedding/embedlite/utils/WindowCreator.cpp
Expand Up @@ -95,7 +95,7 @@ WindowCreator::CreateChromeWindow(nsIWebBrowserChrome* aParent,
uint32_t aChromeFlags,
nsIWebBrowserChrome* *_retval)
{
LOGNI();
LOGT();
bool cancel;
return CreateChromeWindow2(aParent, aChromeFlags, nullptr, nullptr, 0, &cancel, _retval);
}
Expand Down

0 comments on commit e925d62

Please sign in to comment.