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

Unified Diff: views/widget/native_widget_aura.cc

Issue 8082017: Change Window visibility to a simple boolean for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « views/aura_desktop/aura_desktop_main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_aura.cc
===================================================================
--- views/widget/native_widget_aura.cc (revision 103502)
+++ views/widget/native_widget_aura.cc (working copy)
@@ -63,7 +63,7 @@
window_->SetParent(params.parent);
// TODO(beng): do this some other way.
delegate_->OnNativeWidgetSizeChanged(params.bounds.size());
- window_->SetVisibility(aura::Window::VISIBILITY_SHOWN);
+ window_->Show();
can_activate_ = params.can_activate;
}
@@ -264,11 +264,11 @@
}
void NativeWidgetAura::Show() {
- window_->SetVisibility(aura::Window::VISIBILITY_SHOWN);
+ window_->Show();
}
void NativeWidgetAura::Hide() {
- window_->SetVisibility(aura::Window::VISIBILITY_HIDDEN);
+ window_->Hide();
}
void NativeWidgetAura::ShowMaximizedWithBounds(
@@ -277,12 +277,12 @@
}
void NativeWidgetAura::ShowWithWindowState(ui::WindowShowState state) {
- window_->SetVisibility(aura::Window::VISIBILITY_SHOWN);
+ window_->Show();
NOTIMPLEMENTED();
}
bool NativeWidgetAura::IsVisible() const {
- return window_->visibility() != aura::Window::VISIBILITY_HIDDEN;
+ return window_->visible();
}
void NativeWidgetAura::Activate() {
« no previous file with comments | « views/aura_desktop/aura_desktop_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698