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

Unified Diff: ash/launcher/launcher_view.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_unittest.cc ('k') | ash/launcher/launcher_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_view.h
diff --git a/ash/launcher/launcher_view.h b/ash/launcher/launcher_view.h
index f367c3a33aab14cdd2bd4cdedd7df1474429abee..59cf6ba993675988b9ae4c0af5e928ebbd202e5a 100644
--- a/ash/launcher/launcher_view.h
+++ b/ash/launcher/launcher_view.h
@@ -26,6 +26,10 @@ class ViewModel;
namespace ash {
+namespace test {
+class LauncherViewTestAPI;
+}
+
class LauncherDelegate;
struct LauncherItem;
class LauncherIconObserver;
@@ -42,23 +46,6 @@ class ASH_EXPORT LauncherView : public views::View,
public views::ContextMenuController,
public views::FocusTraversable {
public:
- // Use the api in this class for testing only.
- class ASH_EXPORT TestAPI {
- public:
- explicit TestAPI(LauncherView* launcher_view)
- : launcher_view_(launcher_view) {
- }
- // Number of icons displayed.
- int GetButtonCount();
- // Retrieve the button at |index|.
- LauncherButton* GetButton(int index);
-
- private:
- LauncherView* launcher_view_;
-
- DISALLOW_COPY_AND_ASSIGN(TestAPI);
- };
-
LauncherView(LauncherModel* model, LauncherDelegate* delegate);
virtual ~LauncherView();
@@ -80,6 +67,8 @@ class ASH_EXPORT LauncherView : public views::View,
virtual View* GetFocusTraversableParentView() OVERRIDE;
private:
+ friend class ash::test::LauncherViewTestAPI;
+
class FadeOutAnimationDelegate;
class StartFadeAnimationDelegate;
« no previous file with comments | « ash/launcher/launcher_unittest.cc ('k') | ash/launcher/launcher_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698