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

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

Issue 302653008: Moving default minimize location to the app launcher item. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding the functionality to return the overflow button as target if needed Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/shelf/shelf_view.cc » ('j') | ash/shelf/shelf_view.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 ShelfLayoutManager* shelf_layout_manager() { return layout_manager_; } 67 ShelfLayoutManager* shelf_layout_manager() { return layout_manager_; }
68 68
69 ShelfModel* model() { return model_; } 69 ShelfModel* model() { return model_; }
70 70
71 void Init(); 71 void Init();
72 72
73 void OnShelfAlignmentChanged(); 73 void OnShelfAlignmentChanged();
74 void SchedulePaintForAllButtons(); 74 void SchedulePaintForAllButtons();
75 75
76 // Returns the ideal bounds of the specified item, or an empty rect if id 76 // Returns the ideal bounds of the specified item, or an empty rect if id
77 // isn't know. 77 // isn't know. If the item is in an overflow shelf, the overflow icon location
78 // will be returned.
78 gfx::Rect GetIdealBoundsOfItemIcon(ShelfID id); 79 gfx::Rect GetIdealBoundsOfItemIcon(ShelfID id);
79 80
80 // Repositions the icon for the specified item by the midpoint of the window. 81 // Repositions the icon for the specified item by the midpoint of the window.
81 void UpdatePanelIconPosition(ShelfID id, const gfx::Point& midpoint); 82 void UpdatePanelIconPosition(ShelfID id, const gfx::Point& midpoint);
82 83
83 void AddIconObserver(ShelfIconObserver* observer); 84 void AddIconObserver(ShelfIconObserver* observer);
84 void RemoveIconObserver(ShelfIconObserver* observer); 85 void RemoveIconObserver(ShelfIconObserver* observer);
85 86
86 // Returns true if we're showing a menu. 87 // Returns true if we're showing a menu.
87 bool IsShowingMenu() const; 88 bool IsShowingMenu() const;
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 434
434 // True when ripped item from overflow bubble is entered into Shelf. 435 // True when ripped item from overflow bubble is entered into Shelf.
435 bool dragged_off_from_overflow_to_shelf_; 436 bool dragged_off_from_overflow_to_shelf_;
436 437
437 DISALLOW_COPY_AND_ASSIGN(ShelfView); 438 DISALLOW_COPY_AND_ASSIGN(ShelfView);
438 }; 439 };
439 440
440 } // namespace ash 441 } // namespace ash
441 442
442 #endif // ASH_SHELF_SHELF_VIEW_H_ 443 #endif // ASH_SHELF_SHELF_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shelf/shelf_view.cc » ('j') | ash/shelf/shelf_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698