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

Side by Side Diff: ui/app_list/views/app_list_item_view.h

Issue 23228004: Prepare to use gfx::RenderText in views::Label. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments; simplify app list changes. Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // AppListItemObserver overrides: 99 // AppListItemObserver overrides:
100 virtual void ItemIconChanged() OVERRIDE; 100 virtual void ItemIconChanged() OVERRIDE;
101 virtual void ItemNameChanged() OVERRIDE; 101 virtual void ItemNameChanged() OVERRIDE;
102 virtual void ItemHighlightedChanged() OVERRIDE; 102 virtual void ItemHighlightedChanged() OVERRIDE;
103 virtual void ItemIsInstallingChanged() OVERRIDE; 103 virtual void ItemIsInstallingChanged() OVERRIDE;
104 virtual void ItemPercentDownloadedChanged() OVERRIDE; 104 virtual void ItemPercentDownloadedChanged() OVERRIDE;
105 105
106 // views::View overrides: 106 // views::View overrides:
107 virtual const char* GetClassName() const OVERRIDE; 107 virtual const char* GetClassName() const OVERRIDE;
108 virtual void Layout() OVERRIDE; 108 virtual void Layout() OVERRIDE;
109 virtual void SchedulePaintInRect(const gfx::Rect& r) OVERRIDE;
110 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 109 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
111 110
112 // views::ContextMenuController overrides: 111 // views::ContextMenuController overrides:
113 virtual void ShowContextMenuForView(views::View* source, 112 virtual void ShowContextMenuForView(views::View* source,
114 const gfx::Point& point, 113 const gfx::Point& point,
115 ui::MenuSourceType source_type) OVERRIDE; 114 ui::MenuSourceType source_type) OVERRIDE;
116 115
117 // views::CustomButton overrides: 116 // views::CustomButton overrides:
118 virtual void StateChanged() OVERRIDE; 117 virtual void StateChanged() OVERRIDE;
119 virtual bool ShouldEnterPushedState(const ui::Event& event) OVERRIDE; 118 virtual bool ShouldEnterPushedState(const ui::Event& event) OVERRIDE;
(...skipping 27 matching lines...) Expand all
147 146
148 // A timer to defer showing drag UI when mouse is pressed. 147 // A timer to defer showing drag UI when mouse is pressed.
149 base::OneShotTimer<AppListItemView> mouse_drag_timer_; 148 base::OneShotTimer<AppListItemView> mouse_drag_timer_;
150 149
151 DISALLOW_COPY_AND_ASSIGN(AppListItemView); 150 DISALLOW_COPY_AND_ASSIGN(AppListItemView);
152 }; 151 };
153 152
154 } // namespace app_list 153 } // namespace app_list
155 154
156 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ 155 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698