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

Unified Diff: ui/app_list/views/app_list_view.h

Issue 210083009: Add a whole-app-list unit test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase due to fight with r270606 Created 6 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
« no previous file with comments | « ui/app_list/app_list.gyp ('k') | ui/app_list/views/app_list_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_view.h
diff --git a/ui/app_list/views/app_list_view.h b/ui/app_list/views/app_list_view.h
index 83ac2d6b8c60474fa6e361bce2d6bd3df851546e..5cc91ad7b55507bb0effef2415455e1a9a9d9e61 100644
--- a/ui/app_list/views/app_list_view.h
+++ b/ui/app_list/views/app_list_view.h
@@ -5,6 +5,7 @@
#ifndef UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
#define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
+#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
#include "ui/app_list/app_list_export.h"
@@ -98,7 +99,7 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView,
void RemoveObserver(AppListViewObserver* observer);
// Set a callback to be called the next time any app list paints.
- static void SetNextPaintCallback(void (*callback)());
+ void SetNextPaintCallback(const base::Closure& callback);
#if defined(OS_WIN)
HWND GetHWND() const;
@@ -151,6 +152,9 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView,
ObserverList<AppListViewObserver> observers_;
scoped_ptr<HideViewAnimationObserver> animation_observer_;
+ // For UMA and testing. If non-null, triggered when the app list is painted.
+ base::Closure next_paint_callback_;
+
DISALLOW_COPY_AND_ASSIGN(AppListView);
};
« no previous file with comments | « ui/app_list/app_list.gyp ('k') | ui/app_list/views/app_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698