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

Side by Side Diff: ui/app_list/views/app_list_folder_view.h

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 unified diff | Download patch
« no previous file with comments | « ui/app_list/views/app_list_background.h ('k') | ui/app_list/views/app_list_item_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ui/app_list/app_list_item_list_observer.h" 10 #include "ui/app_list/app_list_item_list_observer.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 void UpdateFolderNameVisibility(bool visible); 52 void UpdateFolderNameVisibility(bool visible);
53 53
54 // Hides the view immediately without animation. 54 // Hides the view immediately without animation.
55 void HideViewImmediately(); 55 void HideViewImmediately();
56 56
57 // Closes the folder page and goes back the top level page. 57 // Closes the folder page and goes back the top level page.
58 void CloseFolderPage(); 58 void CloseFolderPage();
59 59
60 // views::View 60 // views::View
61 virtual gfx::Size GetPreferredSize() const OVERRIDE; 61 virtual gfx::Size GetPreferredSize() const override;
62 virtual void Layout() OVERRIDE; 62 virtual void Layout() override;
63 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; 63 virtual bool OnKeyPressed(const ui::KeyEvent& event) override;
64 64
65 // AppListModelObserver 65 // AppListModelObserver
66 virtual void OnAppListItemWillBeDeleted(AppListItem* item) OVERRIDE; 66 virtual void OnAppListItemWillBeDeleted(AppListItem* item) override;
67 67
68 // ui::ImplicitAnimationObserver 68 // ui::ImplicitAnimationObserver
69 virtual void OnImplicitAnimationsCompleted() OVERRIDE; 69 virtual void OnImplicitAnimationsCompleted() override;
70 70
71 AppsGridView* items_grid_view() { return items_grid_view_; } 71 AppsGridView* items_grid_view() { return items_grid_view_; }
72 72
73 private: 73 private:
74 void CalculateIdealBounds(); 74 void CalculateIdealBounds();
75 75
76 // Starts setting up drag in root level apps grid view for re-parenting a 76 // Starts setting up drag in root level apps grid view for re-parenting a
77 // folder item. 77 // folder item.
78 // |drag_point_in_root_grid| is in the cooridnates of root level AppsGridView. 78 // |drag_point_in_root_grid| is in the cooridnates of root level AppsGridView.
79 void StartSetupDragInRootLevelAppsGridView( 79 void StartSetupDragInRootLevelAppsGridView(
80 AppListItemView* original_drag_view, 80 AppListItemView* original_drag_view,
81 const gfx::Point& drag_point_in_root_grid); 81 const gfx::Point& drag_point_in_root_grid);
82 82
83 // Overridden from views::View: 83 // Overridden from views::View:
84 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 84 virtual void GetAccessibleState(ui::AXViewState* state) override;
85 85
86 // Overridden from FolderHeaderViewDelegate: 86 // Overridden from FolderHeaderViewDelegate:
87 virtual void NavigateBack(AppListFolderItem* item, 87 virtual void NavigateBack(AppListFolderItem* item,
88 const ui::Event& event_flags) OVERRIDE; 88 const ui::Event& event_flags) override;
89 virtual void GiveBackFocusToSearchBox() OVERRIDE; 89 virtual void GiveBackFocusToSearchBox() override;
90 virtual void SetItemName(AppListFolderItem* item, 90 virtual void SetItemName(AppListFolderItem* item,
91 const std::string& name) OVERRIDE; 91 const std::string& name) override;
92 92
93 // Overridden from AppsGridViewFolderDelegate: 93 // Overridden from AppsGridViewFolderDelegate:
94 virtual void UpdateFolderViewBackground(bool show_bubble) OVERRIDE; 94 virtual void UpdateFolderViewBackground(bool show_bubble) override;
95 virtual void ReparentItem(AppListItemView* original_drag_view, 95 virtual void ReparentItem(AppListItemView* original_drag_view,
96 const gfx::Point& drag_point_in_folder_grid) 96 const gfx::Point& drag_point_in_folder_grid)
97 OVERRIDE; 97 override;
98 virtual void DispatchDragEventForReparent( 98 virtual void DispatchDragEventForReparent(
99 AppsGridView::Pointer pointer, 99 AppsGridView::Pointer pointer,
100 const gfx::Point& drag_point_in_folder_grid) OVERRIDE; 100 const gfx::Point& drag_point_in_folder_grid) override;
101 virtual void DispatchEndDragEventForReparent( 101 virtual void DispatchEndDragEventForReparent(
102 bool events_forwarded_to_drag_drop_host, 102 bool events_forwarded_to_drag_drop_host,
103 bool cancel_drag) OVERRIDE; 103 bool cancel_drag) override;
104 virtual bool IsPointOutsideOfFolderBoundary(const gfx::Point& point) OVERRIDE; 104 virtual bool IsPointOutsideOfFolderBoundary(const gfx::Point& point) override;
105 virtual bool IsOEMFolder() const OVERRIDE; 105 virtual bool IsOEMFolder() const override;
106 virtual void SetRootLevelDragViewVisible(bool visible) OVERRIDE; 106 virtual void SetRootLevelDragViewVisible(bool visible) override;
107 107
108 AppsContainerView* container_view_; // Not owned. 108 AppsContainerView* container_view_; // Not owned.
109 AppListMainView* app_list_main_view_; // Not Owned. 109 AppListMainView* app_list_main_view_; // Not Owned.
110 FolderHeaderView* folder_header_view_; // Owned by views hierarchy. 110 FolderHeaderView* folder_header_view_; // Owned by views hierarchy.
111 AppsGridView* items_grid_view_; // Owned by the views hierarchy. 111 AppsGridView* items_grid_view_; // Owned by the views hierarchy.
112 112
113 scoped_ptr<views::ViewModel> view_model_; 113 scoped_ptr<views::ViewModel> view_model_;
114 114
115 AppListModel* model_; // Not owned. 115 AppListModel* model_; // Not owned.
116 AppListFolderItem* folder_item_; // Not owned. 116 AppListFolderItem* folder_item_; // Not owned.
117 117
118 bool hide_for_reparent_; 118 bool hide_for_reparent_;
119 119
120 base::string16 accessible_name_; 120 base::string16 accessible_name_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(AppListFolderView); 122 DISALLOW_COPY_AND_ASSIGN(AppListFolderView);
123 }; 123 };
124 124
125 } // namespace app_list 125 } // namespace app_list
126 126
127 #endif // UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_ 127 #endif // UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_background.h ('k') | ui/app_list/views/app_list_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698