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

Unified Diff: chrome/browser/ui/app_list/app_list_service_cocoa_mac.h

Issue 782673002: MacViews: tryjobs for toolkit_views=1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/ui/app_list/app_list_service_cocoa_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/app_list_service_cocoa_mac.h
diff --git a/chrome/browser/ui/app_list/app_list_service_cocoa_mac.h b/chrome/browser/ui/app_list/app_list_service_cocoa_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..9f16f56a11903f2ceb9e68db15b4bf34a3ea0f77
--- /dev/null
+++ b/chrome/browser/ui/app_list/app_list_service_cocoa_mac.h
@@ -0,0 +1,54 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_COCOA_MAC_H_
+#define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_COCOA_MAC_H_
+
+#include "chrome/browser/ui/app_list/app_list_service_mac.h"
+
+namespace test {
+class AppListServiceMacTestApi;
+}
+
+class AppListControllerDelegateImpl;
+@class AppListWindowController;
+
+template <typename T>
+struct DefaultSingletonTraits;
+
+// AppListServiceCocoaMac shows and hides the Cocoa app list on Mac.
+class AppListServiceCocoaMac : public AppListServiceMac {
+ public:
+ ~AppListServiceCocoaMac() override;
+
+ static AppListServiceCocoaMac* GetInstance();
+
+ // AppListService overrides:
+ void ShowForProfile(Profile* requested_profile) override;
+ Profile* GetCurrentAppListProfile() override;
+ AppListControllerDelegate* GetControllerDelegate() override;
+
+ // AppListServiceImpl overrides:
+ void CreateForProfile(Profile* requested_profile) override;
+ void DestroyAppList() override;
+
+ protected:
+ // AppListServceMac overrides:
+ NSWindow* GetNativeWindow() const override;
+ bool ReadyToShow() override;
+
+ private:
+ friend class test::AppListServiceMacTestApi;
+ friend struct DefaultSingletonTraits<AppListServiceCocoaMac>;
+
+ AppListServiceCocoaMac();
+
+ Profile* profile_;
+ base::scoped_nsobject<AppListWindowController> window_controller_;
+ scoped_ptr<AppListControllerDelegateImpl> controller_delegate_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppListServiceCocoaMac);
+};
+
+#endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_COCOA_MAC_H_
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/ui/app_list/app_list_service_cocoa_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698