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

Unified Diff: ui/views/view.cc

Issue 533403002: Fix touch selection for Athena home card (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed NeedsNotificationWhenVisibleBoundsChange() Created 6 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 | « ui/views/view.h ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 99fcdbce3c130f69634031357b520aa837f755d0..8b79faa37d5d25db90f0eca216514acce879b65d 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -1318,7 +1318,7 @@ void View::PreferredSizeChanged() {
parent_->ChildPreferredSizeChanged(this);
}
-bool View::NeedsNotificationWhenVisibleBoundsChange() const {
+bool View::GetNeedsNotificationWhenVisibleBoundsChange() const {
return false;
}
@@ -1927,7 +1927,7 @@ void View::BoundsChanged(const gfx::Rect& previous_bounds) {
Layout();
}
- if (NeedsNotificationWhenVisibleBoundsChange())
+ if (GetNeedsNotificationWhenVisibleBoundsChange())
OnVisibleBoundsChanged();
// Notify interested Views that visible bounds within the root view may have
@@ -1942,7 +1942,7 @@ void View::BoundsChanged(const gfx::Rect& previous_bounds) {
// static
void View::RegisterChildrenForVisibleBoundsNotification(View* view) {
- if (view->NeedsNotificationWhenVisibleBoundsChange())
+ if (view->GetNeedsNotificationWhenVisibleBoundsChange())
view->RegisterForVisibleBoundsNotification();
for (int i = 0; i < view->child_count(); ++i)
RegisterChildrenForVisibleBoundsNotification(view->child_at(i));
@@ -1950,7 +1950,7 @@ void View::RegisterChildrenForVisibleBoundsNotification(View* view) {
// static
void View::UnregisterChildrenForVisibleBoundsNotification(View* view) {
- if (view->NeedsNotificationWhenVisibleBoundsChange())
+ if (view->GetNeedsNotificationWhenVisibleBoundsChange())
view->UnregisterForVisibleBoundsNotification();
for (int i = 0; i < view->child_count(); ++i)
UnregisterChildrenForVisibleBoundsNotification(view->child_at(i));
« no previous file with comments | « ui/views/view.h ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698