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

Unified Diff: views/controls/single_split_view.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/separator.cc ('k') | views/controls/tabbed_pane/native_tabbed_pane_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/single_split_view.cc
===================================================================
--- views/controls/single_split_view.cc (revision 86083)
+++ views/controls/single_split_view.cc (working copy)
@@ -45,10 +45,10 @@
CalculateChildrenBounds(bounds(), &leading_bounds, &trailing_bounds);
if (has_children()) {
- if (GetChildViewAt(0)->IsVisible())
+ if (GetChildViewAt(0)->visible())
GetChildViewAt(0)->SetBoundsRect(leading_bounds);
if (child_count() > 1) {
- if (GetChildViewAt(1)->IsVisible())
+ if (GetChildViewAt(1)->visible())
GetChildViewAt(1)->SetBoundsRect(trailing_bounds);
}
}
@@ -102,9 +102,9 @@
const gfx::Rect& bounds,
gfx::Rect* leading_bounds,
gfx::Rect* trailing_bounds) const {
- bool is_leading_visible = has_children() && GetChildViewAt(0)->IsVisible();
+ bool is_leading_visible = has_children() && GetChildViewAt(0)->visible();
bool is_trailing_visible =
- child_count() > 1 && GetChildViewAt(1)->IsVisible();
+ child_count() > 1 && GetChildViewAt(1)->visible();
if (!is_leading_visible && !is_trailing_visible) {
*leading_bounds = gfx::Rect();
@@ -198,7 +198,7 @@
if (child_count() < 2)
return false;
- if (!GetChildViewAt(0)->IsVisible() || !GetChildViewAt(1)->IsVisible())
+ if (!GetChildViewAt(0)->visible() || !GetChildViewAt(1)->visible())
return false;
int divider_relative_offset;
« no previous file with comments | « views/controls/separator.cc ('k') | views/controls/tabbed_pane/native_tabbed_pane_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698