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

Unified Diff: views/controls/native_control.cc

Issue 7057014: Variety of tweaks to View API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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/controls/menu/submenu_view.cc ('k') | views/controls/scroll_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/native_control.cc
===================================================================
--- views/controls/native_control.cc (revision 86083)
+++ views/controls/native_control.cc (working copy)
@@ -195,7 +195,7 @@
AddChildView(hwnd_view_);
}
- if (!container_ && IsVisible()) {
+ if (!container_ && visible()) {
container_ = new NativeControlContainer(this);
container_->Init();
hwnd_view_->Attach(*container_);
@@ -302,7 +302,7 @@
}
void NativeControl::SetVisible(bool f) {
- if (f != IsVisible()) {
+ if (f != visible()) {
View::SetVisible(f);
if (!f && container_) {
::DestroyWindow(*container_);
« no previous file with comments | « views/controls/menu/submenu_view.cc ('k') | views/controls/scroll_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698