commit | 1c13cab53dbf8c4bebf1bc59e8ecb919b5f5c253 | [log] [tgz] |
---|---|---|
author | Pankaj Garg <pgarg@codeaurora.org> | Tue May 12 11:52:17 2015 -0700 |
committer | Pankaj Garg <pgarg@codeaurora.org> | Mon Jun 01 16:18:16 2015 -0700 |
tree | 13d00ad68cf2f05223dee90e850dcf2241e101b6 | |
parent | 0f808cac6457ab210043077deaf779f9aff03b62 [diff] [blame] |
Temporal edge navigation feature - User can swipe from left and right edge to go back and forward in history of a tab Change-Id: I941f91122510b004bdcb6a718eb6c05730694960
diff --git a/src/com/android/browser/PageProgressView.java b/src/com/android/browser/PageProgressView.java index 2b73e45..c316c68 100644 --- a/src/com/android/browser/PageProgressView.java +++ b/src/com/android/browser/PageProgressView.java
@@ -106,6 +106,10 @@ mHandler.sendEmptyMessage(MSG_UPDATE); } + public int getProgressPercent() { + return (100* mCurrentProgress) / MAX_PROGRESS; + } + @Override public void onDraw(Canvas canvas) { // super.onDraw(canvas);