Skip to content

Commit

Permalink
Drop old API
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeshkova committed Jan 28, 2014
1 parent b166d4e commit 3178699
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 26 deletions.
8 changes: 0 additions & 8 deletions embedding/embedlite/EmbedLiteView.cpp
Expand Up @@ -333,14 +333,6 @@ EmbedLiteView::ScheduleRender()
mViewImpl->ScheduleRender();
}

bool
EmbedLiteView::ScrollBy(int aDX, int aDY, bool aDoOverflow)
{
LOGT();
NS_ENSURE_TRUE(mViewImpl, false);
return mViewImpl->ScrollBy(aDX, aDY);
}

void
EmbedLiteView::ReceiveInputEvent(const InputData& aEvent)
{
Expand Down
3 changes: 0 additions & 3 deletions embedding/embedlite/EmbedLiteView.h
Expand Up @@ -109,9 +109,6 @@ class EmbedLiteView
// Setup renderable view size
virtual void SetViewSize(int width, int height);

// Scroll/Zoom API
virtual bool ScrollBy(int aDX, int aDY, bool aDoOverflow = false);

// Compositor Interface
// PNG Decoded data
virtual char* GetImageAsURL(int aWidth = -1, int aHeight = -1);
Expand Down
1 change: 0 additions & 1 deletion embedding/embedlite/embedhelpers/EmbedLiteViewImplIface.h
Expand Up @@ -46,7 +46,6 @@ class EmbedLiteViewImplIface
virtual void SetTransformation(float aScale, nsIntPoint aScrollOffset) {}
virtual void ScheduleRender() {}
virtual void SetClipping(nsIntRect aClipRect) {}
virtual bool ScrollBy(int aDX, int aDY, bool aDoOverflow = false) { return false; }
virtual void ReceiveInputEvent(const InputData& aEvent) {}
virtual void TextEvent(const char* composite, const char* preEdit) {}
virtual void SendKeyPress(int domKeyCode, int gmodifiers, int charCode) {}
Expand Down
11 changes: 0 additions & 11 deletions embedding/embedlite/embedthread/EmbedLiteViewThreadParent.cpp
Expand Up @@ -50,8 +50,6 @@ EmbedLiteViewThreadParent::EmbedLiteViewThreadParent(const uint32_t& id, const u
, mView(EmbedLiteApp::GetInstance()->GetViewByID(id))
, mViewAPIDestroyed(false)
, mCompositor(nullptr)
, mScrollOffset(0, 0)
, mLastScale(1.0f)
, mInTouchProcess(false)
, mUILoop(MessageLoop::current())
, mLastIMEState(0)
Expand Down Expand Up @@ -472,15 +470,6 @@ EmbedLiteViewThreadParent::RenderGL()
return false;
}

bool
EmbedLiteViewThreadParent::ScrollBy(int aDX, int aDY, bool aDoOverflow)
{
LOGT("d[%i,%i]", aDX, aDY);
mScrollOffset.MoveBy(-aDX, -aDY);

return true;
}

void
EmbedLiteViewThreadParent::SetViewSize(int width, int height)
{
Expand Down
3 changes: 0 additions & 3 deletions embedding/embedlite/embedthread/EmbedLiteViewThreadParent.h
Expand Up @@ -45,7 +45,6 @@ class EmbedLiteViewThreadParent : public PEmbedLiteViewParent,
virtual void SetTransformation(float aScale, nsIntPoint aScrollOffset);
virtual void ScheduleRender();
virtual void UpdateScrollController();
virtual bool ScrollBy(int aDX, int aDY, bool aDoOverflow = false);
virtual void MousePress(int x, int y, int mstime, unsigned int buttons, unsigned int modifiers);
virtual void MouseRelease(int x, int y, int mstime, unsigned int buttons, unsigned int modifiers);
virtual void MouseMove(int x, int y, int mstime, unsigned int buttons, unsigned int modifiers);
Expand Down Expand Up @@ -138,8 +137,6 @@ class EmbedLiteViewThreadParent : public PEmbedLiteViewParent,
EmbedLiteView* mView;
bool mViewAPIDestroyed;
RefPtr<EmbedLiteCompositorParent> mCompositor;
gfx::Point mScrollOffset;
float mLastScale;

ScreenIntSize mViewSize;
gfxSize mGLViewPortSize;
Expand Down

0 comments on commit 3178699

Please sign in to comment.