| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/test/app_list_test_view_delegate.h" | 5 #include "ui/app_list/test/app_list_test_view_delegate.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> |
| 8 | 9 |
| 9 #include "base/callback.h" | 10 #include "base/callback.h" |
| 10 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 11 #include "ui/app_list/app_list_model.h" | 12 #include "ui/app_list/app_list_model.h" |
| 12 #include "ui/app_list/app_list_switches.h" | 13 #include "ui/app_list/app_list_switches.h" |
| 13 #include "ui/app_list/app_list_view_delegate_observer.h" | 14 #include "ui/app_list/app_list_view_delegate_observer.h" |
| 14 #include "ui/app_list/test/app_list_test_model.h" | 15 #include "ui/app_list/test/app_list_test_model.h" |
| 15 #include "ui/gfx/image/image_skia.h" | 16 #include "ui/gfx/image/image_skia.h" |
| 16 | 17 |
| 17 namespace app_list { | 18 namespace app_list { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 90 |
| 90 gfx::ImageSkia AppListTestViewDelegate::GetWindowIcon() { | 91 gfx::ImageSkia AppListTestViewDelegate::GetWindowIcon() { |
| 91 return gfx::ImageSkia(); | 92 return gfx::ImageSkia(); |
| 92 } | 93 } |
| 93 | 94 |
| 94 #if defined(TOOLKIT_VIEWS) | 95 #if defined(TOOLKIT_VIEWS) |
| 95 views::View* AppListTestViewDelegate::CreateStartPageWebView( | 96 views::View* AppListTestViewDelegate::CreateStartPageWebView( |
| 96 const gfx::Size& size) { | 97 const gfx::Size& size) { |
| 97 return NULL; | 98 return NULL; |
| 98 } | 99 } |
| 99 views::View* AppListTestViewDelegate::CreateCustomPageWebView( | 100 std::vector<views::View*> AppListTestViewDelegate::CreateCustomPageWebViews( |
| 100 const gfx::Size& size) { | 101 const gfx::Size& size) { |
| 101 return NULL; | 102 return std::vector<views::View*>(); |
| 102 } | 103 } |
| 103 #endif | 104 #endif |
| 104 | 105 |
| 105 bool AppListTestViewDelegate::IsSpeechRecognitionEnabled() { | 106 bool AppListTestViewDelegate::IsSpeechRecognitionEnabled() { |
| 106 return false; | 107 return false; |
| 107 } | 108 } |
| 108 | 109 |
| 109 const AppListViewDelegate::Users& AppListTestViewDelegate::GetUsers() const { | 110 const AppListViewDelegate::Users& AppListTestViewDelegate::GetUsers() const { |
| 110 return users_; | 111 return users_; |
| 111 } | 112 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 124 observers_.AddObserver(observer); | 125 observers_.AddObserver(observer); |
| 125 } | 126 } |
| 126 | 127 |
| 127 void AppListTestViewDelegate::RemoveObserver( | 128 void AppListTestViewDelegate::RemoveObserver( |
| 128 AppListViewDelegateObserver* observer) { | 129 AppListViewDelegateObserver* observer) { |
| 129 observers_.RemoveObserver(observer); | 130 observers_.RemoveObserver(observer); |
| 130 } | 131 } |
| 131 | 132 |
| 132 } // namespace test | 133 } // namespace test |
| 133 } // namespace app_list | 134 } // namespace app_list |
| OLD | NEW |