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

Unified Diff: ash/aura/wm_window_aura.cc

Issue 2075923002: mash: Convert FocusCycler to wm common types and move to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup 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
Index: ash/aura/wm_window_aura.cc
diff --git a/ash/aura/wm_window_aura.cc b/ash/aura/wm_window_aura.cc
index 4c2d74f0e514d54dafb7be7045440eb12c2c3370..6fc13e4a1d1ec0db4795d53d7a1489bb0a6a748a 100644
--- a/ash/aura/wm_window_aura.cc
+++ b/ash/aura/wm_window_aura.cc
@@ -514,9 +514,13 @@ void WmWindowAura::Show() {
window_->Show();
}
+views::Widget* WmWindowAura::GetWidget() {
+ return views::Widget::GetWidgetForNativeView(window_);
+}
+
void WmWindowAura::CloseWidget() {
msw 2016/06/16 23:57:44 nit: Remove this and inline GetWidget()->Close() f
James Cook 2016/06/17 03:39:29 I'm going to keep this, since there is a differenc
- DCHECK(views::Widget::GetWidgetForNativeView(window_));
- views::Widget::GetWidgetForNativeView(window_)->Close();
+ DCHECK(GetWidget());
+ GetWidget()->Close();
}
bool WmWindowAura::IsFocused() const {
« no previous file with comments | « ash/aura/wm_window_aura.h ('k') | ash/common/focus_cycler.h » ('j') | ash/common/wm_window.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698