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/password_generation_popup_view_bridge
.h" | 7 #include "chrome/browser/ui/cocoa/autofill/password_generation_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 #import "chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.h
" | 11 #import "chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.h
" |
12 #include "ui/gfx/size.h" | 12 #include "ui/gfx/geometry/size.h" |
13 | 13 |
14 namespace autofill { | 14 namespace autofill { |
15 | 15 |
16 PasswordGenerationPopupViewBridge::PasswordGenerationPopupViewBridge( | 16 PasswordGenerationPopupViewBridge::PasswordGenerationPopupViewBridge( |
17 PasswordGenerationPopupController* controller) { | 17 PasswordGenerationPopupController* controller) { |
18 view_.reset( | 18 view_.reset( |
19 [[PasswordGenerationPopupViewCocoa alloc] | 19 [[PasswordGenerationPopupViewCocoa alloc] |
20 initWithController:controller | 20 initWithController:controller |
21 frame:NSZeroRect]); | 21 frame:NSZeroRect]); |
22 } | 22 } |
(...skipping 27 matching lines...) Expand all Loading... |
50 const gfx::Point& point) { | 50 const gfx::Point& point) { |
51 return [view_ isPointInPasswordBounds:NSPointFromCGPoint(point.ToCGPoint())]; | 51 return [view_ isPointInPasswordBounds:NSPointFromCGPoint(point.ToCGPoint())]; |
52 } | 52 } |
53 | 53 |
54 PasswordGenerationPopupView* PasswordGenerationPopupView::Create( | 54 PasswordGenerationPopupView* PasswordGenerationPopupView::Create( |
55 PasswordGenerationPopupController* controller) { | 55 PasswordGenerationPopupController* controller) { |
56 return new PasswordGenerationPopupViewBridge(controller); | 56 return new PasswordGenerationPopupViewBridge(controller); |
57 } | 57 } |
58 | 58 |
59 } // namespace autofill | 59 } // namespace autofill |
OLD | NEW |