Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 package org.chromium.distiller; | |
| 6 | |
| 7 /** | |
| 8 * This class stores information about the link (anchor) after PageParameterDete ctor has detected | |
| 9 * the page parameter: | |
| 10 * - the page number (as represented by the original plain text) for the link | |
| 11 * - the original page parameter numeric component in the URL (this component wo uld be replaced | |
| 12 * by PageParameterDetector.PAGE_PARAM_PLACEHOLDER in the URL pattern) | |
| 13 * - the position of this link in the list of ascending numbers. | |
| 14 */ | |
| 15 class PageLinkInfo { | |
| 16 int mPageNum; | |
| 17 int mPageParamValue; | |
| 18 int mPosInAscendingList; | |
|
cjhopman
2015/04/22 00:35:35
Does a PageLinkInfo always correspond to a PagePar
kuan
2015/04/22 13:39:38
no it doesn't.
1) a PageParamInfo.PageInfo can hav
| |
| 19 | |
| 20 PageLinkInfo(int pageNum, int pageParamValue, int posInAscendingList) { | |
| 21 mPageNum = pageNum; | |
| 22 mPageParamValue = pageParamValue; | |
| 23 mPosInAscendingList = posInAscendingList; | |
| 24 } | |
| 25 } | |
| OLD | NEW |