Index: ui/app_list/views/app_list_page.cc |
diff --git a/ui/app_list/views/app_list_page.cc b/ui/app_list/views/app_list_page.cc |
index 8a7b6f3bd9dbc7224afee42b13ec531301d19b34..a436008d591b752bb334becbbac39b84e4973580 100644 |
--- a/ui/app_list/views/app_list_page.cc |
+++ b/ui/app_list/views/app_list_page.cc |
@@ -10,32 +10,25 @@ namespace { |
// The default z height for the search box. |
const int kDefaultSearchBoxZHeight = 2; |
-} |
+} // namespace |
namespace app_list { |
-AppListPage::AppListPage() : contents_view_(nullptr) { |
-} |
+AppListPage::AppListPage() : contents_view_(nullptr) {} |
-AppListPage::~AppListPage() { |
-} |
+AppListPage::~AppListPage() {} |
-void AppListPage::OnShown() { |
-} |
+void AppListPage::OnShown() {} |
-void AppListPage::OnWillBeShown() { |
-} |
+void AppListPage::OnWillBeShown() {} |
-void AppListPage::OnHidden() { |
-} |
+void AppListPage::OnHidden() {} |
-void AppListPage::OnWillBeHidden() { |
-} |
+void AppListPage::OnWillBeHidden() {} |
void AppListPage::OnAnimationUpdated(double progress, |
AppListModel::State from_state, |
- AppListModel::State to_state) { |
-} |
+ AppListModel::State to_state) {} |
gfx::Rect AppListPage::GetSearchBoxBounds() const { |
DCHECK(contents_view_); |
@@ -71,4 +64,9 @@ gfx::Rect AppListPage::GetDefaultContentsBounds() const { |
return contents_view_->GetDefaultContentsBounds(); |
} |
+bool AppListPage::is_custom_launcher_page_active() { |
oshima
2017/07/14 02:06:47
IsCustomLauncherPageActive()
shouldn't this be co
newcomer
2017/07/14 17:49:33
I did it in the header and left it out of the cc f
|
+ return contents_view_->IsStateActive( |
+ AppListModel::STATE_CUSTOM_LAUNCHER_PAGE); |
+} |
+ |
} // namespace app_list |