Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1986)

Unified Diff: ash/shell/app_list.cc

Issue 2339523004: Remove old (dead) app list code. (Closed)
Patch Set: Address nonbistytftatl review. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/shell/app_list.cc
diff --git a/ash/shell/app_list.cc b/ash/shell/app_list.cc
index 9a27b508eb2341f67f3a4edd9bf1fb92c2334c07..e7e79de016c129105100a3c09da90a7806f7a433 100644
--- a/ash/shell/app_list.cc
+++ b/ash/shell/app_list.cc
@@ -216,20 +216,7 @@ class ExampleAppListViewDelegate : public app_list::AppListViewDelegate {
}
}
- gfx::ImageSkia CreateSearchBoxIcon() {
- const base::string16 icon_text = base::ASCIIToUTF16("ash");
- const gfx::Size icon_size(32, 32);
-
- gfx::Canvas canvas(icon_size, 1.0f, false /* is_opaque */);
- canvas.DrawStringRectWithFlags(
- icon_text, gfx::FontList(), SK_ColorBLACK, gfx::Rect(icon_size),
- gfx::Canvas::TEXT_ALIGN_CENTER | gfx::Canvas::NO_SUBPIXEL_RENDERING);
-
- return gfx::ImageSkia(canvas.ExtractImageRep());
- }
-
void DecorateSearchBox(app_list::SearchBoxModel* search_box_model) {
- search_box_model->SetIcon(CreateSearchBoxIcon());
search_box_model->SetHintText(base::ASCIIToUTF16("Type to search..."));
}
@@ -242,8 +229,6 @@ class ExampleAppListViewDelegate : public app_list::AppListViewDelegate {
const Users& GetUsers() const override { return users_; }
- bool ShouldCenterWindow() const override { return false; }
-
app_list::AppListModel* GetModel() override { return model_.get(); }
app_list::SpeechUIModel* GetSpeechUI() override { return &speech_ui_; }

Powered by Google App Engine
This is Rietveld 408576698