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

Side by Side Diff: ui/app_list/app_list_view.h

Issue 10905311: Consolidate bubble border code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove USE_AURA ifdef for kBigShadowImages and kSmalleShadowImages Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/app_list/app_list_bubble_border.cc ('k') | ui/app_list/app_list_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_APP_LIST_VIEW_H_ 5 #ifndef UI_APP_LIST_APP_LIST_VIEW_H_
6 #define UI_APP_LIST_APP_LIST_VIEW_H_ 6 #define UI_APP_LIST_APP_LIST_VIEW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/app_list/app_list_export.h" 9 #include "ui/app_list/app_list_export.h"
10 #include "ui/app_list/search_box_view_delegate.h" 10 #include "ui/app_list/search_box_view_delegate.h"
11 #include "ui/app_list/search_result_list_view_delegate.h" 11 #include "ui/app_list/search_result_list_view_delegate.h"
12 #include "ui/views/bubble/bubble_delegate.h" 12 #include "ui/views/bubble/bubble_delegate.h"
13 #include "ui/views/controls/button/button.h" 13 #include "ui/views/controls/button/button.h"
14 14
15 namespace app_list { 15 namespace app_list {
16 16
17 class AppListBubbleBorder;
18 class AppListModel; 17 class AppListModel;
19 class AppListViewDelegate; 18 class AppListViewDelegate;
20 class ContentsView; 19 class ContentsView;
21 class PaginationModel; 20 class PaginationModel;
22 class SearchBoxView; 21 class SearchBoxView;
23 22
24 // AppListView is the top-level view and controller of app list UI. It creates 23 // AppListView is the top-level view and controller of app list UI. It creates
25 // and hosts a AppsGridView and passes AppListModel to it for display. 24 // and hosts a AppsGridView and passes AppListModel to it for display.
26 class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView, 25 class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView,
27 public views::ButtonListener, 26 public views::ButtonListener,
(...skipping 28 matching lines...) Expand all
56 virtual bool HasHitTestMask() const OVERRIDE; 55 virtual bool HasHitTestMask() const OVERRIDE;
57 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; 56 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE;
58 57
59 // Overridden from views::View: 58 // Overridden from views::View:
60 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; 59 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
61 60
62 // Overridden from views::ButtonListener: 61 // Overridden from views::ButtonListener:
63 virtual void ButtonPressed(views::Button* sender, 62 virtual void ButtonPressed(views::Button* sender,
64 const ui::Event& event) OVERRIDE; 63 const ui::Event& event) OVERRIDE;
65 64
66 // Overridden from views::BubbleDelegate:
67 virtual gfx::Rect GetBubbleBounds() OVERRIDE;
68
69 // Overridden from SearchBoxViewDelegate: 65 // Overridden from SearchBoxViewDelegate:
70 virtual void QueryChanged(SearchBoxView* sender) OVERRIDE; 66 virtual void QueryChanged(SearchBoxView* sender) OVERRIDE;
71 67
72 // Overridden from SearchResultListViewDelegate: 68 // Overridden from SearchResultListViewDelegate:
73 virtual void OpenResult(const SearchResult& result, 69 virtual void OpenResult(const SearchResult& result,
74 int event_flags) OVERRIDE; 70 int event_flags) OVERRIDE;
75 virtual void InvokeResultAction(const SearchResult& result, 71 virtual void InvokeResultAction(const SearchResult& result,
76 int action_index, 72 int action_index,
77 int event_flags) OVERRIDE; 73 int event_flags) OVERRIDE;
78 74
79 scoped_ptr<AppListModel> model_; 75 scoped_ptr<AppListModel> model_;
80 scoped_ptr<AppListViewDelegate> delegate_; 76 scoped_ptr<AppListViewDelegate> delegate_;
81 77
82 AppListBubbleBorder* bubble_border_; // Owned by views hierarchy.
83 SearchBoxView* search_box_view_; // Owned by views hierarchy. 78 SearchBoxView* search_box_view_; // Owned by views hierarchy.
84 ContentsView* contents_view_; // Owned by views hierarchy. 79 ContentsView* contents_view_; // Owned by views hierarchy.
85 80
86 DISALLOW_COPY_AND_ASSIGN(AppListView); 81 DISALLOW_COPY_AND_ASSIGN(AppListView);
87 }; 82 };
88 83
89 } // namespace app_list 84 } // namespace app_list
90 85
91 #endif // UI_APP_LIST_APP_LIST_VIEW_H_ 86 #endif // UI_APP_LIST_APP_LIST_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/app_list_bubble_border.cc ('k') | ui/app_list/app_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698