| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/app_list/views/start_page_view.h" | 5 #include "ui/app_list/views/start_page_view.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "ui/app_list/app_list_constants.h" | 8 #include "ui/app_list/app_list_constants.h" |
| 9 #include "ui/app_list/app_list_item.h" | 9 #include "ui/app_list/app_list_item.h" |
| 10 #include "ui/app_list/app_list_model.h" | 10 #include "ui/app_list/app_list_model.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 class DummySearchBoxView : public SearchBoxView { | 46 class DummySearchBoxView : public SearchBoxView { |
| 47 public: | 47 public: |
| 48 DummySearchBoxView(SearchBoxViewDelegate* delegate, | 48 DummySearchBoxView(SearchBoxViewDelegate* delegate, |
| 49 AppListViewDelegate* view_delegate) | 49 AppListViewDelegate* view_delegate) |
| 50 : SearchBoxView(delegate, view_delegate) { | 50 : SearchBoxView(delegate, view_delegate) { |
| 51 } | 51 } |
| 52 | 52 |
| 53 virtual ~DummySearchBoxView() {} | 53 virtual ~DummySearchBoxView() {} |
| 54 | 54 |
| 55 // Overridden from views::View: | 55 // Overridden from views::View: |
| 56 virtual gfx::Size GetPreferredSize() const OVERRIDE { | 56 virtual gfx::Size GetPreferredSize() const override { |
| 57 gfx::Size size(SearchBoxView::GetPreferredSize()); | 57 gfx::Size size(SearchBoxView::GetPreferredSize()); |
| 58 size.set_width(kDummySearchBoxWidth); | 58 size.set_width(kDummySearchBoxWidth); |
| 59 return size; | 59 return size; |
| 60 } | 60 } |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 DISALLOW_COPY_AND_ASSIGN(DummySearchBoxView); | 63 DISALLOW_COPY_AND_ASSIGN(DummySearchBoxView); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace | 66 } // namespace |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 252 |
| 253 void StartPageView::ListItemMoved(size_t index, size_t target_index) { | 253 void StartPageView::ListItemMoved(size_t index, size_t target_index) { |
| 254 ScheduleUpdate(); | 254 ScheduleUpdate(); |
| 255 } | 255 } |
| 256 | 256 |
| 257 void StartPageView::ListItemsChanged(size_t start, size_t count) { | 257 void StartPageView::ListItemsChanged(size_t start, size_t count) { |
| 258 ScheduleUpdate(); | 258 ScheduleUpdate(); |
| 259 } | 259 } |
| 260 | 260 |
| 261 } // namespace app_list | 261 } // namespace app_list |
| OLD | NEW |