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

Unified Diff: ui/app_list/cocoa/item_drag_controller.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_search_results_model_bridge.mm ('k') | ui/app_list/cocoa/item_drag_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/cocoa/item_drag_controller.h
diff --git a/ui/app_list/cocoa/item_drag_controller.h b/ui/app_list/cocoa/item_drag_controller.h
deleted file mode 100644
index 3e5b045b72e74c4ff7c4274026142b8ddffbc86b..0000000000000000000000000000000000000000
--- a/ui/app_list/cocoa/item_drag_controller.h
+++ /dev/null
@@ -1,44 +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_ITEM_DRAG_CONTROLLER_H_
-#define UI_APP_LIST_COCOA_ITEM_DRAG_CONTROLLER_H_
-
-#import <Cocoa/Cocoa.h>
-#import <QuartzCore/QuartzCore.h>
-
-#include "base/mac/scoped_nsobject.h"
-
-@class AppsGridViewItem;
-
-// Controller to manage the animations and transient views that are used when
-// dragging an app list item around the app list grid. When initiated, the item
-// image (only) is grown in an animation, and sticks to the mouse cursor. When
-// released, the label is added to the image and it shrinks and moves to the
-// item location in the grid.
-@interface ItemDragController : NSViewController {
- @private
- base::scoped_nsobject<CALayer> dragLayer_;
- base::scoped_nsobject<NSButton> buttonToRestore_;
- NSPoint mouseOffset_;
- NSTimeInterval growStart_;
- BOOL shrinking_;
-}
-
-- (id)initWithGridCellSize:(NSSize)size;
-
-- (void)initiate:(AppsGridViewItem*)item
- mouseDownLocation:(NSPoint)mouseDownLocation
- currentLocation:(NSPoint)currentLocation
- timestamp:(NSTimeInterval)eventTimestamp;
-
-- (void)update:(NSPoint)currentLocation
- timestamp:(NSTimeInterval)eventTimestamp;
-
-- (void)complete:(AppsGridViewItem*)item
- targetOrigin:(NSPoint)targetOrigin;
-
-@end
-
-#endif // UI_APP_LIST_COCOA_ITEM_DRAG_CONTROLLER_H_
« no previous file with comments | « ui/app_list/cocoa/apps_search_results_model_bridge.mm ('k') | ui/app_list/cocoa/item_drag_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698