From e47014752b6a261b2885939c55dc4741d831fa80 Mon Sep 17 00:00:00 2001 From: mfomitchev Date: Thu, 25 Feb 2016 11:10:44 -0800 Subject: Getting rid of some unused methods in FirstRunHelper. BUG=NONE Review URL: https://codereview.chromium.org/1733263003 Cr-Commit-Position: refs/heads/master@{#377634} --- ash/first_run/first_run_helper.h | 11 ----------- ash/first_run/first_run_helper_impl.cc | 18 ------------------ ash/first_run/first_run_helper_impl.h | 4 ---- 3 files changed, 33 deletions(-) (limited to 'ash') diff --git a/ash/first_run/first_run_helper.h b/ash/first_run/first_run_helper.h index 80635d9..6c92976 100644 --- a/ash/first_run/first_run_helper.h +++ b/ash/first_run/first_run_helper.h @@ -41,20 +41,9 @@ class ASH_EXPORT FirstRunHelper { // Returns widget to place tutorial UI into it. virtual views::Widget* GetOverlayWidget() = 0; - // Opens and closes app list. - virtual void OpenAppList() = 0; - virtual void CloseAppList() = 0; - - // Returns bounding rectangle of launcher elements. - virtual gfx::Rect GetLauncherBounds() = 0; - // Returns bounds of application list button. virtual gfx::Rect GetAppListButtonBounds() = 0; - // Returns bounds of application list. You must open application list before - // calling this method. - virtual gfx::Rect GetAppListBounds() = 0; - // Opens and closes system tray bubble. virtual void OpenTrayBubble() = 0; virtual void CloseTrayBubble() = 0; diff --git a/ash/first_run/first_run_helper_impl.cc b/ash/first_run/first_run_helper_impl.cc index ec21cf2..a46a125 100644 --- a/ash/first_run/first_run_helper_impl.cc +++ b/ash/first_run/first_run_helper_impl.cc @@ -51,30 +51,12 @@ views::Widget* FirstRunHelperImpl::GetOverlayWidget() { return widget_; } -void FirstRunHelperImpl::OpenAppList() { - Shell::GetInstance()->ShowAppList(NULL); -} - -void FirstRunHelperImpl::CloseAppList() { - Shell::GetInstance()->DismissAppList(); -} - -gfx::Rect FirstRunHelperImpl::GetLauncherBounds() { - Shelf* shelf = Shelf::ForPrimaryDisplay(); - return shelf->GetVisibleItemsBoundsInScreen(); -} - gfx::Rect FirstRunHelperImpl::GetAppListButtonBounds() { Shelf* shelf = Shelf::ForPrimaryDisplay(); views::View* app_button = shelf->GetAppListButtonView(); return app_button->GetBoundsInScreen(); } -gfx::Rect FirstRunHelperImpl::GetAppListBounds() { - app_list::AppListView* view = Shell::GetInstance()->GetAppListView(); - return view->GetBoundsInScreen(); -} - void FirstRunHelperImpl::Cancel() { FOR_EACH_OBSERVER(Observer, observers(), OnCancelled()); } diff --git a/ash/first_run/first_run_helper_impl.h b/ash/first_run/first_run_helper_impl.h index 7bfb327..7acab8e 100644 --- a/ash/first_run/first_run_helper_impl.h +++ b/ash/first_run/first_run_helper_impl.h @@ -23,11 +23,7 @@ class FirstRunHelperImpl : public FirstRunHelper, // Overriden from FirstRunHelper. views::Widget* GetOverlayWidget() override; - void OpenAppList() override; - void CloseAppList() override; - gfx::Rect GetLauncherBounds() override; gfx::Rect GetAppListButtonBounds() override; - gfx::Rect GetAppListBounds() override; void OpenTrayBubble() override; void CloseTrayBubble() override; bool IsTrayBubbleOpened() override; -- cgit v1.1