diff options
author | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-30 00:15:52 +0000 |
---|---|---|
committer | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-30 00:15:52 +0000 |
commit | 5f9a4b0893a4898bcb7c28751bc02b4f210f630c (patch) | |
tree | 9b65634a393483900c395a2ecdbb2e4ba08bc02d /ash/test/launcher_view_test_api.cc | |
parent | 0d6dcd1f6ccb4a9f01b143744dd802ec81a482b6 (diff) | |
download | chromium_src-5f9a4b0893a4898bcb7c28751bc02b4f210f630c.zip chromium_src-5f9a4b0893a4898bcb7c28751bc02b4f210f630c.tar.gz chromium_src-5f9a4b0893a4898bcb7c28751bc02b4f210f630c.tar.bz2 |
ash: Fix app list icon off position.
BUG=135198
TEST=Starting with an overflown launcher bar and verify app list button is at the right position. Also covered by a new test.
Review URL: https://chromiumcodereview.appspot.com/10704043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145038 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/test/launcher_view_test_api.cc')
-rw-r--r-- | ash/test/launcher_view_test_api.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ash/test/launcher_view_test_api.cc b/ash/test/launcher_view_test_api.cc index 0f8893b..7237196 100644 --- a/ash/test/launcher_view_test_api.cc +++ b/ash/test/launcher_view_test_api.cc @@ -63,6 +63,14 @@ bool LauncherViewTestAPI::IsOverflowButtonVisible() { return launcher_view_->overflow_button_->visible(); } +const gfx::Rect& LauncherViewTestAPI::GetBoundsByIndex(int index) { + return launcher_view_->view_model_->view_at(index)->bounds(); +} + +const gfx::Rect& LauncherViewTestAPI::GetIdealBoundsByIndex(int index) { + return launcher_view_->view_model_->ideal_bounds(index); +} + void LauncherViewTestAPI::SetAnimationDuration(int duration_ms) { launcher_view_->bounds_animator_->SetAnimationDuration(duration_ms); } |