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

Unified Diff: ui/views/widget/drop_helper.cc

Issue 8909002: views: Convert IsEnabled() to just enabled() since it's just a simple accessor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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.cc ('k') | ui/views/widget/root_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/drop_helper.cc
diff --git a/ui/views/widget/drop_helper.cc b/ui/views/widget/drop_helper.cc
index 5b70260460087a0c7e4b6af3b3db98850d23c3a5..15823514d7b0387eaefd4385bf61cfda0a5a5c3d 100644
--- a/ui/views/widget/drop_helper.cc
+++ b/ui/views/widget/drop_helper.cc
@@ -96,14 +96,14 @@ View* DropHelper::CalculateTargetViewImpl(
// Walk the tree, stopping at target_view_ as we know it'll accept the
// drop.
while (view && view != target_view_ &&
- (!view->IsEnabled() || !view->CanDrop(data))) {
+ (!view->enabled() || !view->CanDrop(data))) {
view = view->parent();
}
#else
int formats = 0;
std::set<OSExchangeData::CustomFormat> custom_formats;
while (view && view != target_view_) {
- if (view->IsEnabled() &&
+ if (view->enabled() &&
view->GetDropFormats(&formats, &custom_formats) &&
data.HasAnyFormat(formats, custom_formats) &&
(!check_can_drop || view->CanDrop(data))) {
« no previous file with comments | « ui/views/view.cc ('k') | ui/views/widget/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698