| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "components/exo/shell_surface.h" | 5 #include "components/exo/shell_surface.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "ash/common/frame/custom_frame_view_ash.h" | 9 #include "ash/common/frame/custom_frame_view_ash.h" |
| 10 #include "ash/common/shelf/wm_shelf.h" | 10 #include "ash/common/shelf/wm_shelf.h" |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 // state. In this implementation, we may loose the previous state, | 471 // state. In this implementation, we may loose the previous state, |
| 472 // if the previous state is fullscreen, etc. | 472 // if the previous state is fullscreen, etc. |
| 473 if (ash::wm::GetWindowState(widget_->GetNativeWindow())->IsPinned()) | 473 if (ash::wm::GetWindowState(widget_->GetNativeWindow())->IsPinned()) |
| 474 widget_->Restore(); | 474 widget_->Restore(); |
| 475 } | 475 } |
| 476 } | 476 } |
| 477 | 477 |
| 478 void ShellSurface::SetSystemUiVisibility(bool autohide) { | 478 void ShellSurface::SetSystemUiVisibility(bool autohide) { |
| 479 TRACE_EVENT1("exo", "ShellSurface::SetSystemUiVisibility", "autohide", | 479 TRACE_EVENT1("exo", "ShellSurface::SetSystemUiVisibility", "autohide", |
| 480 autohide); | 480 autohide); |
| 481 // TODO: Implemented in next CL. crbug.com/705723 | 481 ash::wm::SetAutoHideShelf(widget_->GetNativeWindow(), autohide); |
| 482 NOTIMPLEMENTED(); | |
| 483 } | 482 } |
| 484 | 483 |
| 485 void ShellSurface::SetTitle(const base::string16& title) { | 484 void ShellSurface::SetTitle(const base::string16& title) { |
| 486 TRACE_EVENT1("exo", "ShellSurface::SetTitle", "title", | 485 TRACE_EVENT1("exo", "ShellSurface::SetTitle", "title", |
| 487 base::UTF16ToUTF8(title)); | 486 base::UTF16ToUTF8(title)); |
| 488 | 487 |
| 489 title_ = title; | 488 title_ = title; |
| 490 if (widget_) | 489 if (widget_) |
| 491 widget_->UpdateWindowTitle(); | 490 widget_->UpdateWindowTitle(); |
| 492 } | 491 } |
| (...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1594 // small style shadow for them. | 1593 // small style shadow for them. |
| 1595 if (!activatable_) | 1594 if (!activatable_) |
| 1596 shadow->SetElevation(wm::ShadowElevation::SMALL); | 1595 shadow->SetElevation(wm::ShadowElevation::SMALL); |
| 1597 // We don't have rounded corners unless frame is enabled. | 1596 // We don't have rounded corners unless frame is enabled. |
| 1598 if (!frame_enabled_) | 1597 if (!frame_enabled_) |
| 1599 shadow->SetRoundedCornerRadius(0); | 1598 shadow->SetRoundedCornerRadius(0); |
| 1600 } | 1599 } |
| 1601 } | 1600 } |
| 1602 | 1601 |
| 1603 } // namespace exo | 1602 } // namespace exo |
| OLD | NEW |