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

Unified Diff: ash/mus/bridge/wm_window_mus.cc

Issue 2320273002: Refactors DimWindow and moves to ash/common (Closed)
Patch Set: git add wm_window Created 4 years, 3 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/mus/bridge/wm_window_mus.cc
diff --git a/ash/mus/bridge/wm_window_mus.cc b/ash/mus/bridge/wm_window_mus.cc
index 84823022e8ed362bd8713621c610aa4458df3c17..c470b8accff4907db22d19f6c7152cbbbfb51bfe 100644
--- a/ash/mus/bridge/wm_window_mus.cc
+++ b/ash/mus/bridge/wm_window_mus.cc
@@ -111,6 +111,8 @@ WmWindowMus::WmWindowMus(ui::Window* window)
WmWindowMus::~WmWindowMus() {
window_->RemoveObserver(this);
+
+ DestroyUserData();
}
// static
@@ -158,6 +160,10 @@ bool WmWindowMus::IsContainer() const {
return GetShellWindowId() != kShellWindowId_Invalid;
}
+void WmWindowMus::Destroy() {
+ window_->Destroy();
+}
+
const WmWindow* WmWindowMus::GetRootWindow() const {
return Get(window_->GetRoot());
}
@@ -199,7 +205,7 @@ int WmWindowMus::GetShellWindowId() const {
}
ui::wm::WindowType WmWindowMus::GetType() const {
- return GetWmWindowType(window_);
+ return is_wm_window_type_set_ ? wm_window_type_ : GetWmWindowType(window_);
James Cook 2016/09/09 00:03:36 Is it not sufficient to return wm_window_type_ if
sky 2016/09/09 03:50:04 Ya, sorry, this is mildly confusing. I added a com
}
bool WmWindowMus::IsBubble() {
@@ -426,6 +432,11 @@ WmLayoutManager* WmWindowMus::GetLayoutManager() {
: nullptr;
}
+void WmWindowMus::SetVisibilityChangesAnimated() {
+ // TODO: need animation support: http://crbug.com/615087.
+ NOTIMPLEMENTED();
+}
+
void WmWindowMus::SetVisibilityAnimationType(int type) {
// TODO: need animation support: http://crbug.com/615087.
NOTIMPLEMENTED();

Powered by Google App Engine
This is Rietveld 408576698