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

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 265713007: views: Update event-related API to use PointF/RectF instead of Point/Rect. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h" 5 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 926
927 void AutofillDialogViews::SectionContainer::OnGestureEvent( 927 void AutofillDialogViews::SectionContainer::OnGestureEvent(
928 ui::GestureEvent* event) { 928 ui::GestureEvent* event) {
929 if (!ShouldForwardEvent(*event)) 929 if (!ShouldForwardEvent(*event))
930 return; 930 return;
931 931
932 proxy_button_->OnGestureEvent(event); 932 proxy_button_->OnGestureEvent(event);
933 } 933 }
934 934
935 views::View* AutofillDialogViews::SectionContainer::GetEventHandlerForRect( 935 views::View* AutofillDialogViews::SectionContainer::GetEventHandlerForRect(
936 const gfx::Rect& rect) { 936 const gfx::RectF& rect) {
937 // TODO(tdanderson): Modify this function to support rect-based event 937 // TODO(tdanderson): Modify this function to support rect-based event
938 // targeting. 938 // targeting.
939 939
940 views::View* handler = views::View::GetEventHandlerForRect(rect); 940 views::View* handler = views::View::GetEventHandlerForRect(rect);
941 // If the event is not in the label bar and there's no background to be 941 // If the event is not in the label bar and there's no background to be
942 // cleared, let normal event handling take place. 942 // cleared, let normal event handling take place.
943 if (!background() && 943 if (!background() &&
944 rect.CenterPoint().y() > child_at(0)->bounds().bottom()) { 944 rect.CenterPoint().y() > child_at(0)->bounds().bottom()) {
945 return handler; 945 return handler;
946 } 946 }
(...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after
2507 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) 2507 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section)
2508 : section(section), 2508 : section(section),
2509 container(NULL), 2509 container(NULL),
2510 manual_input(NULL), 2510 manual_input(NULL),
2511 suggested_info(NULL), 2511 suggested_info(NULL),
2512 suggested_button(NULL) {} 2512 suggested_button(NULL) {}
2513 2513
2514 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} 2514 AutofillDialogViews::DetailsGroup::~DetailsGroup() {}
2515 2515
2516 } // namespace autofill 2516 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698