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

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

Issue 913133007: Allow scroll events to open custom launcher pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: host coordinates Created 5 years, 10 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
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 "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 views::Widget* search_box_widget() const { return search_box_widget_; } 98 views::Widget* search_box_widget() const { return search_box_widget_; }
99 99
100 // Overridden from views::View: 100 // Overridden from views::View:
101 gfx::Size GetPreferredSize() const override; 101 gfx::Size GetPreferredSize() const override;
102 void Paint(gfx::Canvas* canvas, const views::CullSet& cull_set) override; 102 void Paint(gfx::Canvas* canvas, const views::CullSet& cull_set) override;
103 void OnThemeChanged() override; 103 void OnThemeChanged() override;
104 104
105 // WidgetDelegate overrides: 105 // WidgetDelegate overrides:
106 bool ShouldHandleSystemCommands() const override; 106 bool ShouldHandleSystemCommands() const override;
107 bool ShouldDescendIntoChildForEventHandling(
108 gfx::NativeView child,
109 const gfx::Point& location) override;
107 110
108 // Overridden from AppListViewDelegateObserver: 111 // Overridden from AppListViewDelegateObserver:
109 void OnProfilesChanged() override; 112 void OnProfilesChanged() override;
110 void OnShutdown() override; 113 void OnShutdown() override;
111 114
112 void Prerender(); 115 void Prerender();
113 116
114 void SetProfileByPath(const base::FilePath& profile_path); 117 void SetProfileByPath(const base::FilePath& profile_path);
115 118
116 void AddObserver(AppListViewObserver* observer); 119 void AddObserver(AppListViewObserver* observer);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 185
183 // For UMA and testing. If non-null, triggered when the app list is painted. 186 // For UMA and testing. If non-null, triggered when the app list is painted.
184 base::Closure next_paint_callback_; 187 base::Closure next_paint_callback_;
185 188
186 DISALLOW_COPY_AND_ASSIGN(AppListView); 189 DISALLOW_COPY_AND_ASSIGN(AppListView);
187 }; 190 };
188 191
189 } // namespace app_list 192 } // namespace app_list
190 193
191 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 194 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698