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

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

Issue 645853013: Remove some platform specific stuff from views. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/cocoa/apps_grid_controller_unittest.mm ('k') | ui/app_list/cocoa/apps_grid_view_item.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/cocoa/apps_grid_view_item.h
diff --git a/ui/app_list/cocoa/apps_grid_view_item.h b/ui/app_list/cocoa/apps_grid_view_item.h
deleted file mode 100644
index 6106050a99413f9a2174218860665d4b9bfa5c26..0000000000000000000000000000000000000000
--- a/ui/app_list/cocoa/apps_grid_view_item.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// 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_APPS_GRID_VIEW_ITEM_H_
-#define UI_APP_LIST_COCOA_APPS_GRID_VIEW_ITEM_H_
-
-#import <Cocoa/Cocoa.h>
-
-#include "base/memory/scoped_ptr.h"
-#include "ui/app_list/app_list_export.h"
-#import "ui/base/cocoa/tracking_area.h"
-
-namespace app_list {
-class AppListItem;
-class ItemModelObserverBridge;
-}
-
-// AppsGridViewItem is the controller for an NSButton representing an app item
-// on an NSCollectionView controlled by an AppsGridController.
-APP_LIST_EXPORT
-@interface AppsGridViewItem : NSCollectionViewItem {
- @private
- scoped_ptr<app_list::ItemModelObserverBridge> observerBridge_;
- base::scoped_nsobject<NSProgressIndicator> progressIndicator_;
-
- // Used to highlight the background on hover.
- ui::ScopedCrTrackingArea trackingArea_;
-}
-
-@property(readonly, nonatomic) NSProgressIndicator* progressIndicator;
-
-// Designated initializer. |tileSize| is the size of tiles in the grid.
-- (id)initWithSize:(NSSize)tileSize;
-
-// Set the represented model, updating views. Clears if |itemModel| is NULL.
-- (void)setModel:(app_list::AppListItem*)itemModel;
-
-// Model accessor, via the |observerBridge_|.
-- (app_list::AppListItem*)model;
-
-// Return the button portion of the item, showing the icon and title.
-- (NSButton*)button;
-
-// Generate and return a context menu, populated using the represented model.
-- (NSMenu*)contextMenu;
-
-// Take a snapshot of the grid cell with correct layout, then hide the button.
-// If |isRestore| is true, the snapshot includes the label and items hidden for
-// the initial snapshot are restored.
-- (NSBitmapImageRep*)dragRepresentationForRestore:(BOOL)isRestore;
-
-@end
-
-#endif // UI_APP_LIST_COCOA_APPS_GRID_VIEW_ITEM_H_
« no previous file with comments | « ui/app_list/cocoa/apps_grid_controller_unittest.mm ('k') | ui/app_list/cocoa/apps_grid_view_item.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698