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

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: Rebase 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 | « ash/aura/wm_window_aura.h ('k') | ash/common/focus_cycler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_window_aura.cc
diff --git a/ash/aura/wm_window_aura.cc b/ash/aura/wm_window_aura.cc
index e80aa71377b4ac49638db1744739d404aea25a45..741abe960795b7f531e81f345cb4ebc15cf949ef 100644
--- a/ash/aura/wm_window_aura.cc
+++ b/ash/aura/wm_window_aura.cc
@@ -517,9 +517,13 @@ void WmWindowAura::Show() {
window_->Show();
}
+views::Widget* WmWindowAura::GetInternalWidget() {
+ return views::Widget::GetWidgetForNativeView(window_);
+}
+
void WmWindowAura::CloseWidget() {
- DCHECK(views::Widget::GetWidgetForNativeView(window_));
- views::Widget::GetWidgetForNativeView(window_)->Close();
+ DCHECK(GetInternalWidget());
+ GetInternalWidget()->Close();
}
bool WmWindowAura::IsFocused() const {
« no previous file with comments | « ash/aura/wm_window_aura.h ('k') | ash/common/focus_cycler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698