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

Unified Diff: chrome/browser/chromeos/views/webui_menu_widget.cc

Issue 6452011: Rework tree APIs to reflect Google style and more const-correctness.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | « chrome/browser/chromeos/status/status_area_view.cc ('k') | chrome/browser/ui/views/about_chrome_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/views/webui_menu_widget.cc
===================================================================
--- chrome/browser/chromeos/views/webui_menu_widget.cc (revision 74231)
+++ chrome/browser/chromeos/views/webui_menu_widget.cc (working copy)
@@ -82,7 +82,7 @@
private:
// views::LayoutManager implementatios.
virtual void Layout(views::View* host) {
- if (host->GetChildViewCount() == 0)
+ if (!host->has_children())
return;
gfx::Insets insets = host->GetInsets();
views::View* view = host->GetChildViewAt(0);
@@ -93,7 +93,7 @@
}
virtual gfx::Size GetPreferredSize(views::View* host) {
- DCHECK(host->GetChildViewCount() == 1);
+ DCHECK(host->child_count() == 1);
gfx::Insets insets = host->GetInsets();
gfx::Size size = host->GetChildViewAt(0)->GetPreferredSize();
return gfx::Size(size.width() + insets.width(),
@@ -157,7 +157,7 @@
void WebUIMenuWidget::Close() {
if (dom_view_ != NULL) {
- dom_view_->GetParent()->RemoveChildView(dom_view_);
+ dom_view_->parent()->RemoveChildView(dom_view_);
delete dom_view_;
dom_view_ = NULL;
}
@@ -274,7 +274,7 @@
dom_view_->LoadURL(webui_menu_->menu_url());
} else {
webui_menu_->UpdateStates();
- dom_view_->GetParent()->set_border(new RoundedBorder(locator));
+ dom_view_->parent()->set_border(new RoundedBorder(locator));
menu_locator_->Move(this);
}
Show();
« no previous file with comments | « chrome/browser/chromeos/status/status_area_view.cc ('k') | chrome/browser/ui/views/about_chrome_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698