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

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

Issue 2787693002: Remove more dead app list code. (Closed)
Patch Set: updated comment Created 3 years, 8 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
« no previous file with comments | « ui/app_list/views/app_list_main_view_unittest.cc ('k') | ui/app_list/views/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_VIEWS_APP_LIST_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "ui/app_list/app_list_export.h" 13 #include "ui/app_list/app_list_export.h"
14 #include "ui/app_list/speech_ui_model_observer.h" 14 #include "ui/app_list/speech_ui_model_observer.h"
15 #include "ui/views/bubble/bubble_dialog_delegate.h" 15 #include "ui/views/bubble/bubble_dialog_delegate.h"
16 #include "ui/views/widget/widget.h" 16 #include "ui/views/widget/widget.h"
17 17
18 namespace base {
19 class FilePath;
20 }
21
22 namespace app_list { 18 namespace app_list {
23 class ApplicationDragAndDropHost; 19 class ApplicationDragAndDropHost;
24 class AppListMainView; 20 class AppListMainView;
25 class AppListModel; 21 class AppListModel;
26 class AppListViewDelegate; 22 class AppListViewDelegate;
27 class HideViewAnimationObserver; 23 class HideViewAnimationObserver;
28 class PaginationModel; 24 class PaginationModel;
29 class SearchBoxView; 25 class SearchBoxView;
30 class SpeechView; 26 class SpeechView;
31 27
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Overridden from views::View: 69 // Overridden from views::View:
74 gfx::Size GetPreferredSize() const override; 70 gfx::Size GetPreferredSize() const override;
75 void OnPaint(gfx::Canvas* canvas) override; 71 void OnPaint(gfx::Canvas* canvas) override;
76 72
77 // WidgetDelegate overrides: 73 // WidgetDelegate overrides:
78 bool ShouldHandleSystemCommands() const override; 74 bool ShouldHandleSystemCommands() const override;
79 bool ShouldDescendIntoChildForEventHandling( 75 bool ShouldDescendIntoChildForEventHandling(
80 gfx::NativeView child, 76 gfx::NativeView child,
81 const gfx::Point& location) override; 77 const gfx::Point& location) override;
82 78
83 void SetProfileByPath(const base::FilePath& profile_path);
84
85 AppListMainView* app_list_main_view() { return app_list_main_view_; } 79 AppListMainView* app_list_main_view() { return app_list_main_view_; }
86 80
87 // Gets the PaginationModel owned by this view's apps grid. 81 // Gets the PaginationModel owned by this view's apps grid.
88 PaginationModel* GetAppsPaginationModel(); 82 PaginationModel* GetAppsPaginationModel();
89 83
90 // Overridden from views::View: 84 // Overridden from views::View:
91 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; 85 bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
92 void Layout() override; 86 void Layout() override;
93 void SchedulePaintInRect(const gfx::Rect& rect) override; 87 void SchedulePaintInRect(const gfx::Rect& rect) override;
94 88
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 128
135 // For UMA and testing. If non-null, triggered when the app list is painted. 129 // For UMA and testing. If non-null, triggered when the app list is painted.
136 base::Closure next_paint_callback_; 130 base::Closure next_paint_callback_;
137 131
138 DISALLOW_COPY_AND_ASSIGN(AppListView); 132 DISALLOW_COPY_AND_ASSIGN(AppListView);
139 }; 133 };
140 134
141 } // namespace app_list 135 } // namespace app_list
142 136
143 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 137 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_main_view_unittest.cc ('k') | ui/app_list/views/app_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698