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

Unified Diff: ash/app_list/app_list_presenter_delegate.cc

Issue 2898743002: Draggable peeking/fullscreen launcher with transparent background. (Closed)
Patch Set: addressed msw@'s comments. Created 3 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 side-by-side diff with in-line comments
Download patch
Index: ash/app_list/app_list_presenter_delegate.cc
diff --git a/ash/app_list/app_list_presenter_delegate.cc b/ash/app_list/app_list_presenter_delegate.cc
index 0bbb1c18acfe2b35a5501b6ce39a07356125bfe2..eed2279345d7a946cce496c45b05d184d52e1b19 100644
--- a/ash/app_list/app_list_presenter_delegate.cc
+++ b/ash/app_list/app_list_presenter_delegate.cc
@@ -14,6 +14,7 @@
#include "ash/shelf/shelf_layout_manager.h"
#include "ash/shelf/shelf_widget.h"
#include "ash/shell.h"
+#include "ash/shell_observer.h"
#include "ash/shell_port.h"
#include "ash/wm/maximize_mode/maximize_mode_controller.h"
#include "base/command_line.h"
@@ -119,26 +120,12 @@ void AppListPresenterDelegate::Init(app_list::AppListView* view,
void AppListPresenterDelegate::OnShown(int64_t display_id) {
is_visible_ = true;
- // Update applist button status when app list visibility is changed.
- aura::Window* root_window =
- ShellPort::Get()->GetRootWindowForDisplayId(display_id);
- AppListButton* app_list_button =
- Shelf::ForWindow(root_window)->shelf_widget()->GetAppListButton();
- if (app_list_button)
- app_list_button->OnAppListShown();
}
void AppListPresenterDelegate::OnDismissed() {
DCHECK(is_visible_);
DCHECK(view_);
-
is_visible_ = false;
-
- // Update applist button status when app list visibility is changed.
- Shelf* shelf = Shelf::ForWindow(view_->GetWidget()->GetNativeWindow());
- AppListButton* app_list_button = shelf->shelf_widget()->GetAppListButton();
- if (app_list_button)
- app_list_button->OnAppListDismissed();
}
void AppListPresenterDelegate::UpdateBounds() {

Powered by Google App Engine
This is Rietveld 408576698