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

Side by Side Diff: ash/shelf/shelf_view.h

Issue 2975063003: [Merge M60] Fix shelf dragging context in case Context Menu is shown. (Closed)
Patch Set: Created 3 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ASH_SHELF_SHELF_VIEW_H_ 5 #ifndef ASH_SHELF_SHELF_VIEW_H_
6 #define ASH_SHELF_SHELF_VIEW_H_ 6 #define ASH_SHELF_SHELF_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 // Return the view model for test purposes. 163 // Return the view model for test purposes.
164 const views::ViewModel* view_model_for_test() const { 164 const views::ViewModel* view_model_for_test() const {
165 return view_model_.get(); 165 return view_model_.get();
166 } 166 }
167 167
168 // Return the main shelf. This will return nullptr if this is not called on 168 // Return the main shelf. This will return nullptr if this is not called on
169 // the overflow shelf. 169 // the overflow shelf.
170 ShelfView* main_shelf() { return main_shelf_; } 170 ShelfView* main_shelf() { return main_shelf_; }
171 171
172 const ShelfButton* drag_view() const { return drag_view_; }
173
172 private: 174 private:
173 friend class ash::test::ShelfViewTestAPI; 175 friend class ash::test::ShelfViewTestAPI;
174 176
175 class FadeOutAnimationDelegate; 177 class FadeOutAnimationDelegate;
176 class StartFadeAnimationDelegate; 178 class StartFadeAnimationDelegate;
177 179
178 enum RemovableState { 180 enum RemovableState {
179 REMOVABLE, // Item can be removed when dragged away. 181 REMOVABLE, // Item can be removed when dragged away.
180 DRAGGABLE, // Item can be dragged, but will snap always back to origin. 182 DRAGGABLE, // Item can be dragged, but will snap always back to origin.
181 NOT_REMOVABLE, // Item is fixed and can never be removed. 183 NOT_REMOVABLE, // Item is fixed and can never be removed.
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 ShelfButtonPressedMetricTracker shelf_button_pressed_metric_tracker_; 475 ShelfButtonPressedMetricTracker shelf_button_pressed_metric_tracker_;
474 476
475 base::WeakPtrFactory<ShelfView> weak_factory_; 477 base::WeakPtrFactory<ShelfView> weak_factory_;
476 478
477 DISALLOW_COPY_AND_ASSIGN(ShelfView); 479 DISALLOW_COPY_AND_ASSIGN(ShelfView);
478 }; 480 };
479 481
480 } // namespace ash 482 } // namespace ash
481 483
482 #endif // ASH_SHELF_SHELF_VIEW_H_ 484 #endif // ASH_SHELF_SHELF_VIEW_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_button.cc ('k') | chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698