| OLD | NEW | 
|     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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   587   if (handler == proxy_button_) |   587   if (handler == proxy_button_) | 
|   588     return handler; |   588     return handler; | 
|   589  |   589  | 
|   590   return this; |   590   return this; | 
|   591 } |   591 } | 
|   592  |   592  | 
|   593 // static |   593 // static | 
|   594 ui::MouseEvent AutofillDialogViews::SectionContainer::ProxyEvent( |   594 ui::MouseEvent AutofillDialogViews::SectionContainer::ProxyEvent( | 
|   595     const ui::MouseEvent& event) { |   595     const ui::MouseEvent& event) { | 
|   596   ui::MouseEvent event_copy = event; |   596   ui::MouseEvent event_copy = event; | 
|   597   event_copy.set_location(gfx::Point()); |   597   event_copy.set_location(gfx::PointF()); | 
|   598   return event_copy; |   598   return event_copy; | 
|   599 } |   599 } | 
|   600  |   600  | 
|   601 bool AutofillDialogViews::SectionContainer::ShouldForwardEvent( |   601 bool AutofillDialogViews::SectionContainer::ShouldForwardEvent( | 
|   602     const ui::LocatedEvent& event) { |   602     const ui::LocatedEvent& event) { | 
|   603   // Always forward events on the label bar. |   603   // Always forward events on the label bar. | 
|   604   return forward_mouse_events_ || event.y() <= child_at(0)->bounds().bottom(); |   604   return forward_mouse_events_ || event.y() <= child_at(0)->bounds().bottom(); | 
|   605 } |   605 } | 
|   606  |   606  | 
|   607 // AutofillDialogViews::SuggestedButton ---------------------------------------- |   607 // AutofillDialogViews::SuggestedButton ---------------------------------------- | 
| (...skipping 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1900 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) |  1900 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) | 
|  1901     : section(section), |  1901     : section(section), | 
|  1902       container(NULL), |  1902       container(NULL), | 
|  1903       manual_input(NULL), |  1903       manual_input(NULL), | 
|  1904       suggested_info(NULL), |  1904       suggested_info(NULL), | 
|  1905       suggested_button(NULL) {} |  1905       suggested_button(NULL) {} | 
|  1906  |  1906  | 
|  1907 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |  1907 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 
|  1908  |  1908  | 
|  1909 }  // namespace autofill |  1909 }  // namespace autofill | 
| OLD | NEW |