| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/app_list/pagination_model.h" | 5 #include "ui/app_list/pagination_model.h" |
| 6 | 6 |
| 7 #include "ash/app_list/pagination_model_observer.h" | 7 #include "ui/app_list/pagination_model_observer.h" |
| 8 | 8 |
| 9 namespace ash { | 9 namespace app_list { |
| 10 | 10 |
| 11 PaginationModel::PaginationModel() | 11 PaginationModel::PaginationModel() |
| 12 : total_pages_(-1), | 12 : total_pages_(-1), |
| 13 selected_page_(-1) { | 13 selected_page_(-1) { |
| 14 } | 14 } |
| 15 | 15 |
| 16 PaginationModel::~PaginationModel() { | 16 PaginationModel::~PaginationModel() { |
| 17 } | 17 } |
| 18 | 18 |
| 19 void PaginationModel::SetTotalPages(int total_pages) { | 19 void PaginationModel::SetTotalPages(int total_pages) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 40 } | 40 } |
| 41 | 41 |
| 42 void PaginationModel::AddObserver(PaginationModelObserver* observer) { | 42 void PaginationModel::AddObserver(PaginationModelObserver* observer) { |
| 43 observers_.AddObserver(observer); | 43 observers_.AddObserver(observer); |
| 44 } | 44 } |
| 45 | 45 |
| 46 void PaginationModel::RemoveObserver(PaginationModelObserver* observer) { | 46 void PaginationModel::RemoveObserver(PaginationModelObserver* observer) { |
| 47 observers_.RemoveObserver(observer); | 47 observers_.RemoveObserver(observer); |
| 48 } | 48 } |
| 49 | 49 |
| 50 } // namespace ash | 50 } // namespace app_list |
| OLD | NEW |