summaryrefslogtreecommitdiffstats
path: root/app/animation.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 00:11:01 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 00:11:01 +0000
commit90ca4e6872835e8b117739081678d46b52db294f (patch)
tree0c8cc3f8b004892c40bcfbb59c3794cc4c67b199 /app/animation.cc
parentdf3bc6eccf1d14bc5eb3b9bc2c0b36d97ed08de3 (diff)
downloadchromium_src-90ca4e6872835e8b117739081678d46b52db294f.zip
chromium_src-90ca4e6872835e8b117739081678d46b52db294f.tar.gz
chromium_src-90ca4e6872835e8b117739081678d46b52db294f.tar.bz2
Make omnibox2 dropdown not flash during result set transitions...
- Animate smoothly between decreasing popup heights. Increasing popup heights are instantaneous. - Don't start a size adjustment until a few ms after the result set is updated to avoid jumping the height of the omnibox popup during typing as results from async providers stream in. - The result row carries a copy of the match data so it always has something to paint even if the match that corresponded to those results is now gone. These rows aren't actually actionable by the user and only appear during the animation. The result views are retained even if they are not visible (clipped). BUG=none TEST=type slowly in the omnibox, note the height of the popup doesn't jump between characters. Review URL: http://codereview.chromium.org/149030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19317 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/animation.cc')
-rw-r--r--app/animation.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/animation.cc b/app/animation.cc
index 59d3dea..1ef905d 100644
--- a/app/animation.cc
+++ b/app/animation.cc
@@ -87,7 +87,7 @@ void Animation::End() {
}
}
-bool Animation::IsAnimating() {
+bool Animation::IsAnimating() const {
return animating_;
}