category_info.cc 1.1 KB

12345678910111213141516171819202122232425262728
  1. // Copyright 2016 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "components/ntp_snippets/category_info.h"
  5. namespace ntp_snippets {
  6. CategoryInfo::CategoryInfo(const std::u16string& title,
  7. ContentSuggestionsCardLayout card_layout,
  8. ContentSuggestionsAdditionalAction additional_action,
  9. bool show_if_empty,
  10. const std::u16string& no_suggestions_message)
  11. : title_(title),
  12. card_layout_(card_layout),
  13. additional_action_(additional_action),
  14. show_if_empty_(show_if_empty),
  15. no_suggestions_message_(no_suggestions_message) {}
  16. CategoryInfo::CategoryInfo(CategoryInfo&&) = default;
  17. CategoryInfo::CategoryInfo(const CategoryInfo&) = default;
  18. CategoryInfo& CategoryInfo::operator=(CategoryInfo&&) = default;
  19. CategoryInfo& CategoryInfo::operator=(const CategoryInfo&) = default;
  20. CategoryInfo::~CategoryInfo() = default;
  21. } // namespace ntp_snippets