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

Unified Diff: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc

Issue 2101883002: ARC: Wire minimizing windows from shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix animations. Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
index 72396d0cf690542744ae572644c0925434463759..439cf70af064a1cabaac218af180d2687ce5bf1d 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
@@ -138,7 +138,8 @@ class ArcAppWindowLauncherController::AppWindow : public ui::BaseWindow {
void Maximize() override { NOTREACHED(); }
void Minimize() override {
- // TODO(khmel): support window minimizing.
+ if (widget_)
+ widget_->Minimize();
}
void Restore() override { NOTREACHED(); }
@@ -286,6 +287,7 @@ void ArcAppWindowLauncherController::CheckForAppWindowWidget(
AppWindow* app_window = GetAppWindowForTask(task_id);
if (app_window) {
app_window->set_widget(views::Widget::GetWidgetForNativeWindow(window));
+ ash::SetShelfIDForWindow(app_window->shelf_id(), window);
if (app_window->controller())
window->SetTitle(app_window->controller()->GetTitle());
chrome::MultiUserWindowManager::GetInstance()->SetWindowOwner(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698