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

Side by Side Diff: ui/app_list/presenter/app_list_presenter_impl.h

Issue 2070143003: Add MD ink drop ripple to app list button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@b612539_shelf_button_ripple
Patch Set: Rebased Created 4 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
« no previous file with comments | « ui/app_list/presenter/app_list_presenter.h ('k') | ui/views/animation/ink_drop_host_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_PRESENTER_APP_LIST_PRESENTER_IMPL_H_ 5 #ifndef UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_
6 #define UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_ 6 #define UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Returns app list window or NULL if it is not visible. 48 // Returns app list window or NULL if it is not visible.
49 aura::Window* GetWindow(); 49 aura::Window* GetWindow();
50 50
51 // Returns app list view if one exists, or NULL otherwise. 51 // Returns app list view if one exists, or NULL otherwise.
52 AppListView* GetView() { return view_; } 52 AppListView* GetView() { return view_; }
53 53
54 // AppListPresenter: 54 // AppListPresenter:
55 void Show(int64_t display_id) override; 55 void Show(int64_t display_id) override;
56 void Dismiss() override; 56 void Dismiss() override;
57 void ToggleAppList(int64_t display_id) override; 57 void ToggleAppList(int64_t display_id) override;
58 bool IsVisible() const override;
58 bool GetTargetVisibility() const override; 59 bool GetTargetVisibility() const override;
59 60
60 private: 61 private:
61 friend class test::AppListPresenterImplTestApi; 62 friend class test::AppListPresenterImplTestApi;
62 63
63 // Whether the app list's aura::Window is currently visible.
64 bool IsVisible() const;
65
66 // Sets the app list view and attempts to show it. 64 // Sets the app list view and attempts to show it.
67 void SetView(AppListView* view); 65 void SetView(AppListView* view);
68 66
69 // Forgets the view. 67 // Forgets the view.
70 void ResetView(); 68 void ResetView();
71 69
72 // Starts show/hide animation. 70 // Starts show/hide animation.
73 void ScheduleAnimation(); 71 void ScheduleAnimation();
74 72
75 // aura::client::FocusChangeObserver overrides: 73 // aura::client::FocusChangeObserver overrides:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 112
115 // Whether should schedule snap back animation. 113 // Whether should schedule snap back animation.
116 bool should_snap_back_ = false; 114 bool should_snap_back_ = false;
117 115
118 DISALLOW_COPY_AND_ASSIGN(AppListPresenterImpl); 116 DISALLOW_COPY_AND_ASSIGN(AppListPresenterImpl);
119 }; 117 };
120 118
121 } // namespace app_list 119 } // namespace app_list
122 120
123 #endif // UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_ 121 #endif // UI_APP_LIST_PRESENTER_APP_LIST_PRESENTER_IMPL_H_
OLDNEW
« no previous file with comments | « ui/app_list/presenter/app_list_presenter.h ('k') | ui/views/animation/ink_drop_host_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698