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

Unified Diff: ui/app_list/app_list_bubble_border.h

Issue 10386224: app_list: Add search box and search result view for v2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura Created 8 years, 7 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: ui/app_list/app_list_bubble_border.h
diff --git a/ui/app_list/app_list_bubble_border.h b/ui/app_list/app_list_bubble_border.h
index 53d7bed75b563e53a7e9e67c63607faaec2c853e..2084c4b3ec0f958701bcb5eb864ea2db0d786864 100644
--- a/ui/app_list/app_list_bubble_border.h
+++ b/ui/app_list/app_list_bubble_border.h
@@ -14,21 +14,22 @@ namespace app_list {
// A class to paint bubble border and background.
class AppListBubbleBorder : public views::BubbleBorder {
public:
- explicit AppListBubbleBorder(views::View* app_list_view);
+ AppListBubbleBorder(views::View* app_list_view,
+ views::View* search_box_view,
+ views::View* grid_view,
+ views::View* results_view);
virtual ~AppListBubbleBorder();
- int arrow_offset() const {
- return arrow_offset_;
- }
- void set_arrow_offset(int arrow_offset) {
- arrow_offset_ = arrow_offset;
- }
+ int arrow_offset() const { return arrow_offset_; }
+ void set_arrow_offset(int arrow_offset) { arrow_offset_ = arrow_offset; }
private:
- void PaintModelViewBackground(gfx::Canvas* canvas,
+ void PaintSearchBoxBackground(gfx::Canvas* canvas,
const gfx::Rect& bounds) const;
- void PaintPageSwitcherBackground(gfx::Canvas* canvas,
- const gfx::Rect& bounds) const;
+ void PaintSearchResultListBackground(gfx::Canvas* canvas,
+ const gfx::Rect& bounds) const;
+ void PaintAppsGridBackground(gfx::Canvas* canvas,
+ const gfx::Rect& bounds) const;
// views::BubbleBorder overrides:
virtual void GetInsets(gfx::Insets* insets) const OVERRIDE;
@@ -40,7 +41,12 @@ class AppListBubbleBorder : public views::BubbleBorder {
gfx::Canvas* canvas) const OVERRIDE;
// AppListView hosted inside this bubble.
- views::View* app_list_view_;
+ const views::View* app_list_view_;
+
+ // Children view of AppListView that needs to paint background.
+ const views::View* search_box_view_;
+ const views::View* grid_view_;
+ const views::View* results_view_;
// Offset in pixels relative the default middle position.
int arrow_offset_;

Powered by Google App Engine
This is Rietveld 408576698