| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "chrome/browser/ui/ash/launcher/app_window_base.h" |
| |
| #include "chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h" |
| #include "ui/views/widget/widget.h" |
| |
| AppWindowBase::AppWindowBase(const ash::ShelfID& shelf_id, |
| views::Widget* widget) |
| : shelf_id_(shelf_id), widget_(widget) {} |
| |
| void AppWindowBase::SetController(AppWindowLauncherItemController* controller) { |
| DCHECK(!controller_ || !controller); |
| controller_ = controller; |
| } |
| |
| bool AppWindowBase::IsActive() const { |
| return widget_->IsActive(); |
| } |
| |
| bool AppWindowBase::IsMaximized() const { |
| NOTREACHED(); |
| return false; |
| } |
| |
| bool AppWindowBase::IsMinimized() const { |
| NOTREACHED(); |
| return false; |
| } |
| |
| bool AppWindowBase::IsFullscreen() const { |
| NOTREACHED(); |
| return false; |
| } |
| |
| gfx::NativeWindow AppWindowBase::GetNativeWindow() const { |
| return widget_->GetNativeWindow(); |
| } |
| |
| gfx::Rect AppWindowBase::GetRestoredBounds() const { |
| NOTREACHED(); |
| return gfx::Rect(); |
| } |
| |
| ui::WindowShowState AppWindowBase::GetRestoredState() const { |
| NOTREACHED(); |
| return ui::SHOW_STATE_NORMAL; |
| } |
| |
| gfx::Rect AppWindowBase::GetBounds() const { |
| NOTREACHED(); |
| return gfx::Rect(); |
| } |
| |
| void AppWindowBase::Show() { |
| widget_->Show(); |
| } |
| |
| void AppWindowBase::ShowInactive() { |
| NOTREACHED(); |
| } |
| |
| void AppWindowBase::Hide() { |
| NOTREACHED(); |
| } |
| |
| bool AppWindowBase::IsVisible() const { |
| NOTREACHED(); |
| return true; |
| } |
| |
| void AppWindowBase::Close() { |
| widget_->Close(); |
| } |
| |
| void AppWindowBase::Activate() { |
| widget_->Activate(); |
| } |
| |
| void AppWindowBase::Deactivate() { |
| NOTREACHED(); |
| } |
| |
| void AppWindowBase::Maximize() { |
| NOTREACHED(); |
| } |
| |
| void AppWindowBase::Minimize() { |
| widget_->Minimize(); |
| } |
| |
| void AppWindowBase::Restore() { |
| NOTREACHED(); |
| } |
| |
| void AppWindowBase::SetBounds(const gfx::Rect& bounds) { |
| NOTREACHED(); |
| } |
| |
| void AppWindowBase::FlashFrame(bool flash) { |
| NOTREACHED(); |
| } |
| |
| bool AppWindowBase::IsAlwaysOnTop() const { |
| NOTREACHED(); |
| return false; |
| } |
| |
| void AppWindowBase::SetAlwaysOnTop(bool always_on_top) { |
| NOTREACHED(); |
| } |