Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutText.cpp

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Capitalize the prefix. Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Dirk Mueller (mueller@kde.org) 3 * (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net)
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 SecureTextTimer(LayoutText* layoutText) 77 SecureTextTimer(LayoutText* layoutText)
78 : TimerBase(Platform::current() 78 : TimerBase(Platform::current()
79 ->currentThread() 79 ->currentThread()
80 ->scheduler() 80 ->scheduler()
81 ->timerTaskRunner()), 81 ->timerTaskRunner()),
82 m_layoutText(layoutText), 82 m_layoutText(layoutText),
83 m_lastTypedCharacterOffset(-1) {} 83 m_lastTypedCharacterOffset(-1) {}
84 84
85 void restartWithNewText(unsigned lastTypedCharacterOffset) { 85 void restartWithNewText(unsigned lastTypedCharacterOffset) {
86 m_lastTypedCharacterOffset = lastTypedCharacterOffset; 86 m_lastTypedCharacterOffset = lastTypedCharacterOffset;
87 if (Settings* settings = m_layoutText->document().settings()) 87 if (Settings* settings = m_layoutText->document().settings()) {
88 startOneShot(settings->passwordEchoDurationInSeconds(), BLINK_FROM_HERE); 88 startOneShot(settings->GetPasswordEchoDurationInSeconds(),
89 BLINK_FROM_HERE);
90 }
89 } 91 }
90 void invalidate() { m_lastTypedCharacterOffset = -1; } 92 void invalidate() { m_lastTypedCharacterOffset = -1; }
91 unsigned lastTypedCharacterOffset() { return m_lastTypedCharacterOffset; } 93 unsigned lastTypedCharacterOffset() { return m_lastTypedCharacterOffset; }
92 94
93 private: 95 private:
94 void fired() override { 96 void fired() override {
95 ASSERT(gSecureTextTimers->contains(m_layoutText)); 97 ASSERT(gSecureTextTimers->contains(m_layoutText));
96 m_layoutText->setText( 98 m_layoutText->setText(
97 m_layoutText->text().impl(), 99 m_layoutText->text().impl(),
98 true /* forcing setting text as it may be masked later */); 100 true /* forcing setting text as it may be masked later */);
(...skipping 1885 matching lines...) Expand 10 before | Expand all | Expand 10 after
1984 LayoutRect rect = LayoutRect( 1986 LayoutRect rect = LayoutRect(
1985 IntRect(firstRunX(), firstRunY(), linesBox.width(), linesBox.height())); 1987 IntRect(firstRunX(), firstRunY(), linesBox.width(), linesBox.height()));
1986 LayoutBlock* block = containingBlock(); 1988 LayoutBlock* block = containingBlock();
1987 if (block && hasTextBoxes()) 1989 if (block && hasTextBoxes())
1988 block->adjustChildDebugRect(rect); 1990 block->adjustChildDebugRect(rect);
1989 1991
1990 return rect; 1992 return rect;
1991 } 1993 }
1992 1994
1993 } // namespace blink 1995 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698