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

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

Issue 68173019: Remove static initializer from AppListView::SetNextPaintCallback(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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_forward.h" 8 #include "base/callback_forward.h"
benwells 2013/11/15 02:13:59 Nit: this ain't needed anymore.
koz (OOO until 15th September) 2013/11/17 23:16:19 Done.
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"
11 #include "ui/app_list/app_list_export.h" 11 #include "ui/app_list/app_list_export.h"
12 #include "ui/app_list/app_list_model_observer.h" 12 #include "ui/app_list/app_list_model_observer.h"
13 #include "ui/views/bubble/bubble_delegate.h" 13 #include "ui/views/bubble/bubble_delegate.h"
14 14
15 namespace base { 15 namespace base {
16 class FilePath; 16 class FilePath;
17 } 17 }
18 18
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // Invoked when the sign-in status is changed to switch on/off sign-in view. 91 // Invoked when the sign-in status is changed to switch on/off sign-in view.
92 void OnSigninStatusChanged(); 92 void OnSigninStatusChanged();
93 93
94 void SetProfileByPath(const base::FilePath& profile_path); 94 void SetProfileByPath(const base::FilePath& profile_path);
95 95
96 void AddObserver(Observer* observer); 96 void AddObserver(Observer* observer);
97 void RemoveObserver(Observer* observer); 97 void RemoveObserver(Observer* observer);
98 98
99 // Set a callback to be called the next time any app list paints. 99 // Set a callback to be called the next time any app list paints.
100 static void SetNextPaintCallback(const base::Closure& callback); 100 static void SetNextPaintCallback(void (*callback)());
101 101
102 #if defined(OS_WIN) 102 #if defined(OS_WIN)
103 HWND GetHWND() const; 103 HWND GetHWND() const;
104 #endif 104 #endif
105 105
106 AppListModel* model() { return model_.get(); } 106 AppListModel* model() { return model_.get(); }
107 AppListMainView* app_list_main_view() { return app_list_main_view_; } 107 AppListMainView* app_list_main_view() { return app_list_main_view_; }
108 108
109 private: 109 private:
110 void InitAsBubbleInternal(gfx::NativeView parent, 110 void InitAsBubbleInternal(gfx::NativeView parent,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 SigninView* signin_view_; 143 SigninView* signin_view_;
144 144
145 ObserverList<Observer> observers_; 145 ObserverList<Observer> observers_;
146 146
147 DISALLOW_COPY_AND_ASSIGN(AppListView); 147 DISALLOW_COPY_AND_ASSIGN(AppListView);
148 }; 148 };
149 149
150 } // namespace app_list 150 } // namespace app_list
151 151
152 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 152 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698