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

Side by Side Diff: chrome/browser/ui/app_list/app_list_shower.h

Issue 226283003: Remove single-window-metro-mode code paths for the app launcher and apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Thought I deleted this already Created 6 years, 8 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/ui/app_list/app_list.h" 9 #include "chrome/browser/ui/app_list/app_list.h"
10 #include "chrome/browser/ui/app_list/app_list_factory.h" 10 #include "chrome/browser/ui/app_list/app_list_factory.h"
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 AppListShower(scoped_ptr<AppListFactory> factory, 25 AppListShower(scoped_ptr<AppListFactory> factory,
26 scoped_ptr<KeepAliveService> keep_alive, 26 scoped_ptr<KeepAliveService> keep_alive,
27 AppListService* service); 27 AppListService* service);
28 ~AppListShower(); 28 ~AppListShower();
29 29
30 void set_can_close(bool can_close) { 30 void set_can_close(bool can_close) {
31 can_close_app_list_ = can_close; 31 can_close_app_list_ = can_close;
32 } 32 }
33 33
34 void ShowAndReacquireFocus(Profile* requested_profile);
35 void ShowForProfile(Profile* requested_profile); 34 void ShowForProfile(Profile* requested_profile);
36 gfx::NativeWindow GetWindow(); 35 gfx::NativeWindow GetWindow();
37 36
38 AppList* app_list() { return app_list_.get(); } 37 AppList* app_list() { return app_list_.get(); }
39 Profile* profile() const { return profile_; } 38 Profile* profile() const { return profile_; }
40 39
41 // Create or recreate, and initialize |app_list_| from |requested_profile|. 40 // Create or recreate, and initialize |app_list_| from |requested_profile|.
42 void CreateViewForProfile(Profile* requested_profile); 41 void CreateViewForProfile(Profile* requested_profile);
43 42
44 void DismissAppList(); 43 void DismissAppList();
45 void CloseAppList(); 44 void CloseAppList();
46 bool IsAppListVisible() const; 45 bool IsAppListVisible() const;
47 void WarmupForProfile(Profile* profile); 46 void WarmupForProfile(Profile* profile);
48 bool HasView() const; 47 bool HasView() const;
49 48
50 private: 49 private:
51 scoped_ptr<AppListFactory> factory_; 50 scoped_ptr<AppListFactory> factory_;
52 scoped_ptr<KeepAliveService> keep_alive_service_; 51 scoped_ptr<KeepAliveService> keep_alive_service_;
53 scoped_ptr<AppList> app_list_; 52 scoped_ptr<AppList> app_list_;
54 AppListService* service_; // Weak ptr, owns this. 53 AppListService* service_; // Weak ptr, owns this.
55 Profile* profile_; 54 Profile* profile_;
56 bool can_close_app_list_; 55 bool can_close_app_list_;
57 56
58 // Used to keep the browser process alive while the app list is visible. 57 // Used to keep the browser process alive while the app list is visible.
59 58
60 DISALLOW_COPY_AND_ASSIGN(AppListShower); 59 DISALLOW_COPY_AND_ASSIGN(AppListShower);
61 }; 60 };
62 61
63 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_H_ 62 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service.cc ('k') | chrome/browser/ui/app_list/app_list_shower.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698