Index: chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.h |
diff --git a/chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.h b/chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.h |
index c7978db19222f0257f12e0378065b356821a3108..e148eb63f5491a4280e33249689ae3af458ac5cc 100644 |
--- a/chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.h |
+++ b/chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.h |
@@ -5,12 +5,13 @@ |
#ifndef CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_MUS_H_ |
#define CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_PRESENTER_DELEGATE_MUS_H_ |
-#include "ui/app_list/presenter/app_list_presenter_delegate.h" |
- |
#include "base/macros.h" |
+#include "ui/app_list/presenter/app_list_presenter_delegate.h" |
+#include "ui/views/pointer_watcher.h" |
namespace app_list { |
class AppListView; |
+class AppListPresenter; |
class AppListViewDelegateFactory; |
} |
@@ -18,10 +19,13 @@ class AppListViewDelegateFactory; |
// Responsible for laying out the app list UI as well as dismissing the app list |
// on in response to certain events (e.g. on mouse/touch gesture outside of the |
// app list bounds). |
-class AppListPresenterDelegateMus : public app_list::AppListPresenterDelegate { |
+class AppListPresenterDelegateMus : public app_list::AppListPresenterDelegate, |
+ public views::PointerWatcher { |
public: |
explicit AppListPresenterDelegateMus( |
mfomitchev
2016/09/29 21:21:22
remove explicit
thanhph
2016/09/29 23:08:00
ok done!
|
+ app_list::AppListPresenter* presenter, |
app_list::AppListViewDelegateFactory* view_delegate_factory); |
+ |
~AppListPresenterDelegateMus() override; |
// app_list::AppListPresenterDelegate: |
@@ -32,14 +36,23 @@ class AppListPresenterDelegateMus : public app_list::AppListPresenterDelegate { |
void OnShown(int64_t display_id) override; |
void OnDismissed() override; |
void UpdateBounds() override; |
+ |
mfomitchev
2016/09/29 21:21:22
remove blank line
|
gfx::Vector2d GetVisibilityAnimationOffset( |
aura::Window* root_window) override; |
private: |
+ // Receive callback events when users click/touch on a widget |
mfomitchev
2016/09/29 21:21:22
The comment should be just
// views::PointerWatch
thanhph
2016/09/29 23:08:00
cool thanks!
|
+ void OnPointerEventObserved(const ui::PointerEvent& event, |
+ const gfx::Point& location_in_screen, |
+ views::Widget* target) override; |
+ |
// Whether the app list is visible (or in the process of being shown). |
bool is_visible_ = false; |
// Not owned. Pointer is guaranteed to be valid while this object is alive. |
+ app_list::AppListPresenter* presenter_; |
+ |
+ // Not owned. Pointer is guaranteed to be valid while this object is alive. |
app_list::AppListViewDelegateFactory* view_delegate_factory_; |
// The current AppListView, owned by its widget. |