| 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.h" | 7 #include "chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.h" |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "chrome/browser/ui/autofill/autofill_popup_controller.h" | 10 #include "chrome/browser/ui/autofill/autofill_popup_controller.h" |
| 11 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" | 11 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" |
| 12 #import "chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h" | 12 #import "chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h" |
| 13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
| 14 | 14 |
| 15 namespace autofill { | 15 namespace autofill { |
| 16 | 16 |
| 17 AutofillPopupViewBridge::AutofillPopupViewBridge( | 17 AutofillPopupViewBridge::AutofillPopupViewBridge( |
| 18 AutofillPopupController* controller) | 18 AutofillPopupController* controller) |
| 19 : controller_(controller) { | 19 : controller_(controller) { |
| 20 view_.reset( | 20 view_.reset( |
| 21 [[AutofillPopupViewCocoa alloc] initWithController:controller | 21 [[AutofillPopupViewCocoa alloc] initWithController:controller |
| 22 frame:NSZeroRect]); | 22 frame:NSZeroRect]); |
| 23 } | 23 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 42 void AutofillPopupViewBridge::UpdateBoundsAndRedrawPopup() { | 42 void AutofillPopupViewBridge::UpdateBoundsAndRedrawPopup() { |
| 43 [view_ updateBoundsAndRedrawPopup]; | 43 [view_ updateBoundsAndRedrawPopup]; |
| 44 } | 44 } |
| 45 | 45 |
| 46 AutofillPopupView* AutofillPopupView::Create( | 46 AutofillPopupView* AutofillPopupView::Create( |
| 47 AutofillPopupController* controller) { | 47 AutofillPopupController* controller) { |
| 48 return new AutofillPopupViewBridge(controller); | 48 return new AutofillPopupViewBridge(controller); |
| 49 } | 49 } |
| 50 | 50 |
| 51 } // namespace autofill | 51 } // namespace autofill |
| OLD | NEW |