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

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

Issue 20656002: Add profile selector menu to app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove binary changes Created 7 years, 3 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/views/app_list_menu_views.cc ('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_forward.h" 8 #include "base/callback_forward.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"
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 {
16 class FilePath;
17 }
18
15 namespace views { 19 namespace views {
16 class Widget; 20 class Widget;
17 } 21 }
18 22
19 namespace app_list { 23 namespace app_list {
20 class ApplicationDragAndDropHost; 24 class ApplicationDragAndDropHost;
21 class AppListMainView; 25 class AppListMainView;
22 class AppListModel; 26 class AppListModel;
23 class AppListViewDelegate; 27 class AppListViewDelegate;
24 class PaginationModel; 28 class PaginationModel;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual void Paint(gfx::Canvas* canvas) OVERRIDE; 84 virtual void Paint(gfx::Canvas* canvas) OVERRIDE;
81 85
82 // WidgetDelegate overrides: 86 // WidgetDelegate overrides:
83 virtual bool ShouldHandleSystemCommands() const OVERRIDE; 87 virtual bool ShouldHandleSystemCommands() const OVERRIDE;
84 88
85 void Prerender(); 89 void Prerender();
86 90
87 // 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.
88 void OnSigninStatusChanged(); 92 void OnSigninStatusChanged();
89 93
94 void SetProfileByPath(const base::FilePath& profile_path);
95
90 void AddObserver(Observer* observer); 96 void AddObserver(Observer* observer);
91 void RemoveObserver(Observer* observer); 97 void RemoveObserver(Observer* observer);
92 98
93 // 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.
94 static void SetNextPaintCallback(const base::Closure& callback); 100 static void SetNextPaintCallback(const base::Closure& callback);
95 101
96 #if defined(OS_WIN) 102 #if defined(OS_WIN)
97 HWND GetHWND() const; 103 HWND GetHWND() const;
98 #endif 104 #endif
99 105
(...skipping 18 matching lines...) Expand all
118 124
119 // Overridden from views::WidgetObserver: 125 // Overridden from views::WidgetObserver:
120 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; 126 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE;
121 virtual void OnWidgetVisibilityChanged( 127 virtual void OnWidgetVisibilityChanged(
122 views::Widget* widget, bool visible) OVERRIDE; 128 views::Widget* widget, bool visible) OVERRIDE;
123 virtual void OnWidgetActivationChanged( 129 virtual void OnWidgetActivationChanged(
124 views::Widget* widget, bool active) OVERRIDE; 130 views::Widget* widget, bool active) OVERRIDE;
125 131
126 // Overridden from AppListModelObserver: 132 // Overridden from AppListModelObserver:
127 virtual void OnAppListModelSigninStatusChanged() OVERRIDE; 133 virtual void OnAppListModelSigninStatusChanged() OVERRIDE;
128 virtual void OnAppListModelCurrentUserChanged() OVERRIDE; 134 virtual void OnAppListModelUsersChanged() OVERRIDE;
129 135
130 SigninDelegate* GetSigninDelegate(); 136 SigninDelegate* GetSigninDelegate();
131 137
132 scoped_ptr<AppListModel> model_; 138 scoped_ptr<AppListModel> model_;
133 scoped_ptr<AppListViewDelegate> delegate_; 139 scoped_ptr<AppListViewDelegate> delegate_;
134 140
135 AppListMainView* app_list_main_view_; 141 AppListMainView* app_list_main_view_;
136 SigninView* signin_view_; 142 SigninView* signin_view_;
137 143
138 ObserverList<Observer> observers_; 144 ObserverList<Observer> observers_;
139 145
140 DISALLOW_COPY_AND_ASSIGN(AppListView); 146 DISALLOW_COPY_AND_ASSIGN(AppListView);
141 }; 147 };
142 148
143 } // namespace app_list 149 } // namespace app_list
144 150
145 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 151 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_menu_views.cc ('k') | ui/app_list/views/app_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698