Home
last modified time | relevance | path

Searched refs:newPos (Results 1 – 19 of 19) sorted by relevance

/external/chromium_org/ui/file_manager/file_manager/foreground/js/
Dfile_table.js53 FileTableColumnModel.prototype.applyColumnPositions_ = function(newPos) { argument
55 for (var i = 0; i < newPos.length - 2; i++) {
56 if (newPos[i + 1] - newPos[i] < FileTableColumnModel.MIN_WIDTH_) {
57 newPos[i + 1] = newPos[i] + FileTableColumnModel.MIN_WIDTH_;
60 for (var i = newPos.length - 1; i >= 2; i--) {
61 if (newPos[i] - newPos[i - 1] < FileTableColumnModel.MIN_WIDTH_) {
62 newPos[i - 1] = newPos[i] - FileTableColumnModel.MIN_WIDTH_;
67 this.columns_[i].width = newPos[i + 1] - newPos[i];
135 var newPos = [];
138 newPos[i] = this.columnPos_[i];
[all …]
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRenderMarquee.cpp290 int newPos; in timerFired() local
292 newPos = m_end; in timerFired()
306 newPos = currentPos + (addIncrement ? increment : -increment); in timerFired()
308 newPos = std::min(newPos, endPoint); in timerFired()
310 newPos = std::max(newPos, endPoint); in timerFired()
313 if (newPos == endPoint) { in timerFired()
322 layer()->scrollableArea()->scrollToXOffset(newPos); in timerFired()
324 layer()->scrollableArea()->scrollToYOffset(newPos); in timerFired()
/external/chromium_org/ui/file_manager/file_manager/foreground/js/metadata/
Dbyte_reader.js491 var newPos;
493 newPos = this.pos_ + pos;
495 newPos = opt_end + pos;
497 newPos = pos;
500 if (newPos < 0 || newPos > this.view_.byteLength)
501 throw new Error('Seek outside of buffer: ' + (newPos - opt_end));
503 this.pos_ = newPos;
/external/lzma/CPP/7zip/Common/
DLimitedStreams.cpp34 UInt64 newPos = _startOffset + _virtPos; in Read() local
35 if (newPos != _physPos) in Read()
37 _physPos = newPos; in Read()
75 UInt64 newPos = StartOffset + ((UInt64)phyBlock << BlockSizeLog) + offsetInBlock; in Read() local
76 if (newPos != _physPos) in Read()
78 _physPos = newPos; in Read()
/external/pdfium/core/src/fxcrt/
Dfxcrt_windows.cpp120 LARGE_INTEGER newPos = {0, 0}; in GetPosition() local
121 if (!::SetFilePointerEx(m_hFile, dist, &newPos, FILE_CURRENT)) { in GetPosition()
124 return (FX_FILESIZE)newPos.QuadPart; in GetPosition()
133 LARGE_INTEGER newPos = {0, 0}; in SetPosition() local
134 if (!::SetFilePointerEx(m_hFile, dist, &newPos, FILE_BEGIN)) { in SetPosition()
137 return (FX_FILESIZE)newPos.QuadPart; in SetPosition()
/external/javassist/src/main/javassist/expr/
DNewExpr.java28 int newPos; field in NewExpr
37 newPos = np; in NewExpr()
141 int op = iterator.byteAt(newPos + 3); in canReplace()
145 && iterator.byteAt(newPos + 4) == Opcode.SWAP) in canReplace()
165 int pos = newPos; in replace()
/external/chromium_org/third_party/WebKit/Source/platform/scroll/
DScrollAnimator.cpp55 float newPos = clampScrollPosition(orientation, currentPos + step * delta); in scroll() local
56 if (currentPos == newPos) in scroll()
58 currentPos = newPos; in scroll()
/external/zlib/src/contrib/minizip/
Diowin32.c240 static BOOL MySetFilePointerEx(HANDLE hFile, LARGE_INTEGER pos, LARGE_INTEGER *newPos, DWORD dwMov… in MySetFilePointerEx() argument
243 return SetFilePointerEx(hFile, pos, newPos, dwMoveMethod); in MySetFilePointerEx()
251 if ((newPos != NULL) && (fOk)) in MySetFilePointerEx()
253 newPos->LowPart = dwNewPos; in MySetFilePointerEx()
254 newPos->HighPart = lHigh; in MySetFilePointerEx()
/external/chromium_org/ui/file_manager/video_player/js/
Dvideo_player.js494 var newPos = this.currentPos_ + (direction ? 1 : -1);
495 if (0 <= newPos && newPos < this.videos_.length) {
496 this.currentPos_ = newPos;
/external/fonttools/Lib/fontTools/ttLib/tables/
DttProgram.py198 newPos = m.regs[0][1]
199 assert newPos >= pos
200 return newPos
/external/chromium_org/third_party/WebKit/Source/platform/mac/
DScrollAnimatorMac.mm734 …float newPos = std::max<float>(std::min<float>(currentPos + (step * delta), m_scrollableArea->maxi…
735 if (currentPos == newPos)
741 …entation == HorizontalScrollbar ? NSMakePoint(newPos, targetOrigin.y) : NSMakePoint(targetOrigin.x…
743 …ientation == HorizontalScrollbar ? NSMakePoint(newPos, m_currentPosY) : NSMakePoint(m_currentPosX,…
1211 …FloatPoint newPos = adjustScrollPositionIfNecessary(FloatPoint(m_currentPosX, m_currentPosY) + del…
1212 if (newPos.x() == m_currentPosX && newPos.y() == m_currentPosY)
1215 FloatSize adjustedDelta = FloatSize(newPos.x() - m_currentPosX, newPos.y() - m_currentPosY);
1217 m_currentPosX = newPos.x();
1218 m_currentPosY = newPos.y();
/external/chromium_org/third_party/WebKit/Source/web/tests/
DScrollAnimatorNoneTest.cpp362 double newPos = attackCurve(curve, t, time, 0, kPosition); in curveTestInner() local
363 double delta = newPos - oldPos; in curveTestInner()
367 accumulate += (oldPos + newPos) / 2 * (step / time); in curveTestInner()
368 oldPos = newPos; in curveTestInner()
384 double newPos = releaseCurve(curve, t, time, 0, kPosition); in curveTestInner() local
385 double delta = newPos - oldPos; in curveTestInner()
389 accumulate -= (kPosition - (oldPos + newPos) / 2) * (step / time); in curveTestInner()
390 oldPos = newPos; in curveTestInner()
/external/icu/icu4c/source/i18n/
Dtmutfmt.cpp177 int32_t newPos = -1; in parseObject() local
242 newPos = pos.getIndex(); in parseObject()
276 pos.setIndex(newPos); in parseObject()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowParcel.java805 int newPos = dataPosition(); in writeBundle() local
809 int N = newPos - oldPos; in writeBundle()
811 setDataPosition(newPos); in writeBundle()
/external/chromium_org/third_party/icu/source/i18n/
Dtmutfmt.cpp245 int32_t newPos = -1; in parseObject() local
315 newPos = pos.getIndex(); in parseObject()
349 pos.setIndex(newPos); in parseObject()
/external/chromium_org/chrome/browser/ui/cocoa/find_bar/
Dfind_bar_cocoa_controller.mm559 gfx::Rect newPos = FindBarController::GetLocationForFindbarView(
562 return newPos.x();
/external/skia/experimental/webtry/res/js/cm/
Dcodemirror.js1206 var newPos = m.find(dir < 0 ? -1 : 1);
1207 if (cmp(newPos, curPos) == 0) {
1208 newPos.ch += dir;
1209 if (newPos.ch < 0) {
1210 if (newPos.line > doc.first) newPos = clipPos(doc, Pos(newPos.line - 1));
1211 else newPos = null;
1212 } else if (newPos.ch > line.text.length) {
1213 if (newPos.line < doc.first + doc.size - 1) newPos = Pos(newPos.line + 1, 0);
1214 else newPos = null;
1216 if (!newPos) {
[all …]
/external/chromium_org/third_party/skia/experimental/webtry/res/js/cm/
Dcodemirror.js1206 var newPos = m.find(dir < 0 ? -1 : 1);
1207 if (cmp(newPos, curPos) == 0) {
1208 newPos.ch += dir;
1209 if (newPos.ch < 0) {
1210 if (newPos.line > doc.first) newPos = clipPos(doc, Pos(newPos.line - 1));
1211 else newPos = null;
1212 } else if (newPos.ch > line.text.length) {
1213 if (newPos.line < doc.first + doc.size - 1) newPos = Pos(newPos.line + 1, 0);
1214 else newPos = null;
1216 if (!newPos) {
[all …]
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/cm/
Dcodemirror.js1223 var newPos = m.find(dir < 0 ? -1 : 1);
1224 if (cmp(newPos, curPos) == 0) {
1225 newPos.ch += dir;
1226 if (newPos.ch < 0) {
1227 if (newPos.line > doc.first) newPos = clipPos(doc, Pos(newPos.line - 1));
1228 else newPos = null;
1229 } else if (newPos.ch > line.text.length) {
1230 if (newPos.line < doc.first + doc.size - 1) newPos = Pos(newPos.line + 1, 0);
1231 else newPos = null;
1233 if (!newPos) {
[all …]