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

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: fix bugs 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"
9 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
10 #include "base/observer_list.h" 9 #include "base/observer_list.h"
11 #include "ui/app_list/app_list_export.h" 10 #include "ui/app_list/app_list_export.h"
12 #include "ui/app_list/app_list_model_observer.h" 11 #include "ui/app_list/app_list_model_observer.h"
13 #include "ui/views/bubble/bubble_delegate.h" 12 #include "ui/views/bubble/bubble_delegate.h"
14 13
15 namespace base { 14 namespace base {
16 class FilePath; 15 class FilePath;
17 } 16 }
18 17
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 89
91 // Invoked when the sign-in status is changed to switch on/off sign-in view. 90 // Invoked when the sign-in status is changed to switch on/off sign-in view.
92 void OnSigninStatusChanged(); 91 void OnSigninStatusChanged();
93 92
94 void SetProfileByPath(const base::FilePath& profile_path); 93 void SetProfileByPath(const base::FilePath& profile_path);
95 94
96 void AddObserver(Observer* observer); 95 void AddObserver(Observer* observer);
97 void RemoveObserver(Observer* observer); 96 void RemoveObserver(Observer* observer);
98 97
99 // Set a callback to be called the next time any app list paints. 98 // Set a callback to be called the next time any app list paints.
100 static void SetNextPaintCallback(const base::Closure& callback); 99 static void SetNextPaintCallback(void (*callback)());
101 100
102 #if defined(OS_WIN) 101 #if defined(OS_WIN)
103 HWND GetHWND() const; 102 HWND GetHWND() const;
104 #endif 103 #endif
105 104
106 AppListModel* model() { return model_.get(); } 105 AppListModel* model() { return model_.get(); }
107 AppListMainView* app_list_main_view() { return app_list_main_view_; } 106 AppListMainView* app_list_main_view() { return app_list_main_view_; }
108 107
109 private: 108 private:
110 void InitAsBubbleInternal(gfx::NativeView parent, 109 void InitAsBubbleInternal(gfx::NativeView parent,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 SigninView* signin_view_; 142 SigninView* signin_view_;
144 143
145 ObserverList<Observer> observers_; 144 ObserverList<Observer> observers_;
146 145
147 DISALLOW_COPY_AND_ASSIGN(AppListView); 146 DISALLOW_COPY_AND_ASSIGN(AppListView);
148 }; 147 };
149 148
150 } // namespace app_list 149 } // namespace app_list
151 150
152 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 151 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698