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

Unified Diff: ash/test/launcher_view_test_api.h

Issue 10068027: ash: Fix launcher icon overlaps with status. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/launcher/launcher_view_unittest.cc ('k') | ash/test/launcher_view_test_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/launcher_view_test_api.h
diff --git a/ash/test/launcher_view_test_api.h b/ash/test/launcher_view_test_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..651e2a0988d44d005c08e25e3fccc4c5a9c36ecd
--- /dev/null
+++ b/ash/test/launcher_view_test_api.h
@@ -0,0 +1,53 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_TEST_LAUNCHER_VIEW_TEST_API_H_
+#define ASH_TEST_LAUNCHER_VIEW_TEST_API_H_
+#pragma once
+
+#include "base/basictypes.h"
+
+namespace ash {
+
+namespace internal {
+class LauncherButton;
+class LauncherView;
+}
+
+namespace test {
+
+// Use the api in this class to test LauncherView.
+class LauncherViewTestAPI {
+ public:
+ explicit LauncherViewTestAPI(internal::LauncherView* launcher_view);
+ ~LauncherViewTestAPI();
+
+ // Number of icons displayed.
+ int GetButtonCount();
+
+ // Retrieve the button at |index|.
+ internal::LauncherButton* GetButton(int index);
+
+ // Last visible button index.
+ int GetLastVisibleIndex();
+
+ // Returns true if overflow button is visible.
+ bool IsOverflowButtonVisible();
+
+ // Sets animation duration in milliseconds for test.
+ void SetAnimationDuration(int duration_ms);
+
+ // Runs message loop and waits until all add/remove animations are done.
+ void RunMessageLoopUntilAnimationsDone();
+
+ private:
+ internal::LauncherView* launcher_view_;
+
+ DISALLOW_COPY_AND_ASSIGN(LauncherViewTestAPI);
+};
+
+} // namespace test
+} // namespace ash
+
+#endif // ASH_TEST_LAUNCHER_VIEW_TEST_API_H_
« no previous file with comments | « ash/launcher/launcher_view_unittest.cc ('k') | ash/test/launcher_view_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698