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

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

Issue 593563002: For Mac, add AppListViewDelegateObserver::OnShutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl format, nits Created 6 years, 2 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/cocoa/app_list_view_controller.mm ('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 "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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 virtual gfx::Size GetPreferredSize() const OVERRIDE; 93 virtual gfx::Size GetPreferredSize() const OVERRIDE;
94 virtual void Paint(gfx::Canvas* canvas, 94 virtual void Paint(gfx::Canvas* canvas,
95 const views::CullSet& cull_set) OVERRIDE; 95 const views::CullSet& cull_set) OVERRIDE;
96 virtual void OnThemeChanged() OVERRIDE; 96 virtual void OnThemeChanged() OVERRIDE;
97 97
98 // WidgetDelegate overrides: 98 // WidgetDelegate overrides:
99 virtual bool ShouldHandleSystemCommands() const OVERRIDE; 99 virtual bool ShouldHandleSystemCommands() const OVERRIDE;
100 100
101 // Overridden from AppListViewDelegateObserver: 101 // Overridden from AppListViewDelegateObserver:
102 virtual void OnProfilesChanged() OVERRIDE; 102 virtual void OnProfilesChanged() OVERRIDE;
103 virtual void OnShutdown() OVERRIDE;
103 104
104 void Prerender(); 105 void Prerender();
105 106
106 void SetProfileByPath(const base::FilePath& profile_path); 107 void SetProfileByPath(const base::FilePath& profile_path);
107 108
108 void AddObserver(AppListViewObserver* observer); 109 void AddObserver(AppListViewObserver* observer);
109 void RemoveObserver(AppListViewObserver* observer); 110 void RemoveObserver(AppListViewObserver* observer);
110 111
111 // Set a callback to be called the next time any app list paints. 112 // Set a callback to be called the next time any app list paints.
112 void SetNextPaintCallback(const base::Closure& callback); 113 void SetNextPaintCallback(const base::Closure& callback);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 174
174 // For UMA and testing. If non-null, triggered when the app list is painted. 175 // For UMA and testing. If non-null, triggered when the app list is painted.
175 base::Closure next_paint_callback_; 176 base::Closure next_paint_callback_;
176 177
177 DISALLOW_COPY_AND_ASSIGN(AppListView); 178 DISALLOW_COPY_AND_ASSIGN(AppListView);
178 }; 179 };
179 180
180 } // namespace app_list 181 } // namespace app_list
181 182
182 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 183 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/cocoa/app_list_view_controller.mm ('k') | ui/app_list/views/app_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698