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

Unified Diff: ui/app_list/app_list_item_view.h

Issue 10533032: cleanup: Remove applist v1 code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
« no previous file with comments | « ui/app_list/app_list.gyp ('k') | ui/app_list/app_list_item_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/app_list_item_view.h
diff --git a/ui/app_list/app_list_item_view.h b/ui/app_list/app_list_item_view.h
index 00479242a07fef28a563674cbfa5feb47ee8e700..3b7e9b3ed9b194480cb2db641185f5d93dbc0237 100644
--- a/ui/app_list/app_list_item_view.h
+++ b/ui/app_list/app_list_item_view.h
@@ -34,37 +34,21 @@ class APP_LIST_EXPORT AppListItemView : public views::CustomButton,
public views::ContextMenuController,
public AppListItemModelObserver {
public:
+ // Internal class name.
+ static const char kViewClassName[];
+
AppListItemView(AppsGridView* apps_grid_view,
AppListItemModel* model,
views::ButtonListener* listener);
virtual ~AppListItemView();
- static gfx::Size GetPreferredSizeForIconSize(const gfx::Size& icon_size);
-
- // For testing. Testing calls this function to set minimum title width in
- // pixels to get rid dependency on default font width.
- static void SetMinTitleWidth(int width);
-
- void SetSelected(bool selected);
- bool selected() const {
- return selected_;
- }
-
void SetIconSize(const gfx::Size& size);
- AppListItemModel* model() const {
- return model_;
- }
-
- // Internal class name.
- static const char kViewClassName[];
+ AppListItemModel* model() const { return model_; }
private:
class IconOperation;
- // Returns true for v2 UI.
- bool IsV2() const;
-
// Get icon from model and schedule background processing.
void UpdateIcon();
@@ -82,7 +66,6 @@ class APP_LIST_EXPORT AppListItemView : public views::CustomButton,
// views::View overrides:
virtual std::string GetClassName() const OVERRIDE;
- virtual gfx::Size GetPreferredSize() OVERRIDE;
virtual void Layout() OVERRIDE;
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
@@ -103,7 +86,6 @@ class APP_LIST_EXPORT AppListItemView : public views::CustomButton,
scoped_ptr<views::MenuRunner> context_menu_runner_;
gfx::Size icon_size_;
- bool selected_;
scoped_refptr<IconOperation> icon_op_;
base::WeakPtrFactory<AppListItemView> apply_shadow_factory_;
« no previous file with comments | « ui/app_list/app_list.gyp ('k') | ui/app_list/app_list_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698