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

Unified Diff: ui/app_list/cocoa/app_list_view_controller.h

Issue 12701022: wrongbaseurl OSX App List Pager and root view controller. (Closed) Base URL: http://git.chromium.org/chromium/src.git@20130304-crbug-138633-osx-app-list-demo-polish-macbook
Patch Set: delegate should be owned by viewcontroller, test coverage Created 7 years, 9 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 | « ui/app_list/app_list.gyp ('k') | ui/app_list/cocoa/app_list_view_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/cocoa/app_list_view_controller.h
diff --git a/ui/app_list/cocoa/app_list_view_controller.h b/ui/app_list/cocoa/app_list_view_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..16914357156c96df1e511a4f6009e27dca538510
--- /dev/null
+++ b/ui/app_list/cocoa/app_list_view_controller.h
@@ -0,0 +1,39 @@
+// Copyright 2013 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 UI_APP_LIST_COCOA_APP_LIST_VIEW_CONTROLLER_H_
+#define UI_APP_LIST_COCOA_APP_LIST_VIEW_CONTROLLER_H_
+
+#import <Cocoa/Cocoa.h>
+
+#include "base/memory/scoped_nsobject.h"
+#include "base/memory/scoped_ptr.h"
+#import "ui/app_list/cocoa/apps_pagination_model_observer.h"
+
+namespace app_list {
+class AppListViewDelegate;
+}
+
+@class AppsGridController;
+
+// Controller for the root app list view.
+@interface AppListViewController :
+ NSViewController<AppsPaginationModelObserver> {
+ @private
+ scoped_nsobject<AppsGridController> appsGridController_;
+ scoped_nsobject<NSSegmentedControl> pagerControl_;
+ scoped_ptr<app_list::AppListViewDelegate> delegate_;
+}
+
+- (AppsGridController*)appsGridController;
+
+- (NSSegmentedControl*)pagerControl;
+
+- (app_list::AppListViewDelegate*)delegate;
+
+- (void)setDelegate:(scoped_ptr<app_list::AppListViewDelegate>)newDelegate;
+
+@end
+
+#endif // UI_APP_LIST_COCOA_APP_LIST_VIEW_CONTROLLER_H_
« no previous file with comments | « ui/app_list/app_list.gyp ('k') | ui/app_list/cocoa/app_list_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698