summaryrefslogtreecommitdiffstats
path: root/ash
diff options
context:
space:
mode:
authormfomitchev <mfomitchev@chromium.org>2016-02-25 11:10:44 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-25 19:11:45 +0000
commite47014752b6a261b2885939c55dc4741d831fa80 (patch)
treeefbb8467a012af5aa0cef9713c93fdf2d7218cf0 /ash
parent1b73f6072ce625edb527bfe13672cec3c1f3d339 (diff)
downloadchromium_src-e47014752b6a261b2885939c55dc4741d831fa80.zip
chromium_src-e47014752b6a261b2885939c55dc4741d831fa80.tar.gz
chromium_src-e47014752b6a261b2885939c55dc4741d831fa80.tar.bz2
Getting rid of some unused methods in FirstRunHelper.
BUG=NONE Review URL: https://codereview.chromium.org/1733263003 Cr-Commit-Position: refs/heads/master@{#377634}
Diffstat (limited to 'ash')
-rw-r--r--ash/first_run/first_run_helper.h11
-rw-r--r--ash/first_run/first_run_helper_impl.cc18
-rw-r--r--ash/first_run/first_run_helper_impl.h4
3 files changed, 0 insertions, 33 deletions
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;