Chromium Code Reviews| Index: athena/home/app_list_view_delegate.cc |
| diff --git a/athena/home/app_list_view_delegate.cc b/athena/home/app_list_view_delegate.cc |
| index bd85ecaaead5cb48ea36e5881e2457751d4e2fa8..10189152933226bbc65c1df89c3cec02b0416b18 100644 |
| --- a/athena/home/app_list_view_delegate.cc |
| +++ b/athena/home/app_list_view_delegate.cc |
| @@ -19,9 +19,33 @@ |
| #include "ui/app_list/search_result.h" |
| #include "ui/app_list/speech_ui_model.h" |
| #include "ui/gfx/image/image_skia.h" |
| +#include "ui/views/background.h" |
| +#include "ui/views/view.h" |
| namespace athena { |
| +namespace { |
| + |
| +// A view to draw the logo area of app-list centered view. |
| +// TODO(mukai): replace this by the actual start page webview. |
| +class DummyLogoView : public views::View { |
| + public: |
| + explicit DummyLogoView(const gfx::Size& size) |
| + : size_(size) { |
| + set_background(views::Background::CreateSolidBackground( |
| + SK_ColorLTGRAY)); |
| + } |
| + |
| + private: |
| + virtual gfx::Size GetPreferredSize() const OVERRIDE { |
| + return size_; |
| + } |
| + |
| + gfx::Size size_; |
|
oshima
2014/08/07 06:37:48
const
Jun Mukai
2014/08/07 20:14:34
Done.
|
| +}; |
|
oshima
2014/08/07 06:37:48
disallow_copy_and_assign
Jun Mukai
2014/08/07 20:14:34
Done.
|
| + |
| +} |
| + |
| AppListViewDelegate::AppListViewDelegate(AppModelBuilder* model_builder) |
| : model_(new app_list::AppListModel), |
| speech_ui_(new app_list::SpeechUIModel( |
| @@ -155,7 +179,7 @@ void AppListViewDelegate::ShowForProfileByPath( |
| views::View* AppListViewDelegate::CreateStartPageWebView( |
| const gfx::Size& size) { |
| - return NULL; |
| + return new DummyLogoView(size); |
| } |
| views::View* AppListViewDelegate::CreateCustomPageWebView( |