Home | History | Annotate | Download | only in shelf

Lines Matching refs:view

60 using views::View;
231 virtual View* FindNextFocusableView(
232 View* starting_view,
237 View** focus_traversable_view) OVERRIDE {
264 explicit FadeInAnimationDelegate(views::View* view) : view_(view) {}
282 views::View* view_;
318 FadeOutAnimationDelegate(ShelfView* host, views::View* view)
320 view_(view) {}
336 scoped_ptr<views::View> view_;
347 views::View* view)
349 view_(view) {}
362 views::View* view_;
417 views::View* child = CreateViewForItem(*i);
513 views::View* ShelfView::GetAppListButtonView() const {
534 View* ShelfView::GetFocusTraversableParentView() {
541 views::View* replaced_view,
606 views::View* drag_and_drop_view = view_model_->view_at(
618 views::View::ConvertPointFromScreen(drag_and_drop_view, &pt);
638 views::View* drag_and_drop_view = view_model_->view_at(
655 views::View* drag_and_drop_view = view_model_->view_at(
855 View* view = view_model_->view_at(i);
856 bounds_animator_->AnimateViewTo(view, view_model_->ideal_bounds(i));
859 if (i && view->border())
860 view->SetBorder(views::Border::NullBorder());
865 views::View* ShelfView::CreateViewForItem(const ShelfItem& item) {
866 views::View* view = NULL;
877 view = button;
882 view = new AppListButton(this, this, layout_manager_->shelf_widget());
889 view->set_context_menu_controller(this);
891 DCHECK(view);
892 ConfigureChildView(view);
893 return view;
896 void ShelfView::FadeIn(views::View* view) {
897 view->SetVisible(true);
898 view->layer()->SetOpacity(0);
901 view,
902 scoped_ptr<gfx::AnimationDelegate>(new FadeInAnimationDelegate(view)));
924 // Move the view to the front so that it appears on top of other views.
1032 // Destroy our proxy view item.
1062 // Move our proxy view item.
1070 // Create a proxy view item which can be moved anywhere.
1108 // If the view isn't part of the model anymore (|current_index| == -1), a sync
1157 // When a canceling drag model is happening, the view model is diverged
1212 void ShelfView::ConfigureChildView(views::View* view) {
1213 view->SetPaintToLayer(true);
1214 view->layer()->SetFillsBoundsOpaquely(false);
1249 views::View* last_visible_view = view_model_->view_at(last_visible_index_);
1272 views::View* child = child_at(i);
1341 // The view that was being dragged is being modified. Don't do anything.
1347 // Restore previous position, tracking the position of the modified view.
1349 views::View* modified_view =
1354 // If the modified view will be at the end of the list, return the new end of
1427 views::View* view = CreateViewForItem(model_->items()[model_index]);
1428 AddChildView(view);
1429 // Hide the view, it'll be made visible when the animation is done. Using
1431 // the view's visibility.
1432 view->layer()->SetOpacity(0);
1433 view_model_->Add(view, model_index);
1441 view->SetBoundsRect(view_model_->ideal_bounds(model_index));
1443 // The first animation moves all the views to their target position. |view|
1445 // it. When done we'll fade the view in.
1450 view,
1452 new StartFadeAnimationDelegate(this, view)));
1455 view->layer()->SetOpacity(1.0f);
1467 views::View* view = view_model_->view_at(model_index);
1481 if (view->visible()) {
1482 // The first animation fades out the view. When done we'll animate the rest
1484 bounds_animator_->AnimateViewTo(view, view->bounds());
1486 view,
1488 new FadeOutAnimationDelegate(this, view)));
1490 // We don't need to show a fade out animation for invisible |view|. When an
1491 // item is ripped out from the shelf, its |view| is already invisible.
1495 // Close the tooltip because it isn't needed any longer and its anchor view
1497 if (tooltip_->GetCurrentAnchorView() == view)
1506 scoped_ptr<views::View> old_view(view_model_->view_at(model_index));
1508 // Removing and re-inserting a view in our view model will strip the ideal
1513 views::View* new_view = CreateViewForItem(item);
1521 views::View* view = view_model_->view_at(model_index);
1531 ShelfButton* button = static_cast<ShelfButton*>(view);
1560 void ShelfView::PointerPressedOnButton(views::View* view,
1566 int index = view_model_->GetIndexOfView(view);
1573 return; // View is being deleted or not draggable, ignore request.
1575 drag_view_ = view;
1586 void ShelfView::PointerDraggedOnButton(views::View* view,
1600 void ShelfView::PointerReleasedOnButton(views::View* view,
1616 void ShelfView::MouseMovedOverButton(views::View* view) {
1617 if (!ShouldShowTooltipForView(view))
1624 void ShelfView::MouseEnteredButton(views::View* view) {
1625 if (!ShouldShowTooltipForView(view))
1629 tooltip_->ShowImmediately(view, GetAccessibleName(view));
1631 tooltip_->ShowDelayed(view, GetAccessibleName(view));
1635 void ShelfView::MouseExitedButton(views::View* view) {
1640 base::string16 ShelfView::GetAccessibleName(const views::View* view) {
1641 int view_index = view_model_->GetIndexOfView(view);
1720 views::View* source,
1740 void ShelfView::ShowContextMenuForView(views::View* source,
1768 views::View* source,
1790 view. To cover
1867 views::View* view = view_model_->view_at(index);
1868 if (view == snap_back_from_rip_off_view_) {
1869 ShelfButton* button = static_cast<ShelfButton*>(view);
1891 const ShelfItem* ShelfView::ShelfItemForView(const views::View* view) const {
1892 int view_index = view_model_->GetIndexOfView(view);
1898 bool ShelfView::ShouldShowTooltipForView(const views::View* view) const {
1899 if (view == GetAppListButtonView() &&
1902 const ShelfItem* item = ShelfItemForView(view);