| Index: chrome/browser/ui/cocoa/autofill/password_generation_popup_view_bridge.mm
|
| diff --git a/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_bridge.mm b/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_bridge.mm
|
| index 6c22cb8bb63cad3504e9ea8fe2c4f0915c237b54..9f4cd9a32b755d866dbb7665af4b064b784d0ecd 100644
|
| --- a/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_bridge.mm
|
| +++ b/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_bridge.mm
|
| @@ -9,8 +9,7 @@
|
| #include "base/logging.h"
|
| #include "chrome/browser/ui/autofill/autofill_popup_controller.h"
|
| #import "chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.h"
|
| -#include "ui/base/cocoa/window_size_constants.h"
|
| -#include "ui/gfx/rect.h"
|
| +#include "ui/gfx/size.h"
|
|
|
| namespace autofill {
|
|
|
| @@ -36,8 +35,7 @@ void PasswordGenerationPopupViewBridge::Show() {
|
| }
|
|
|
| gfx::Size PasswordGenerationPopupViewBridge::GetPreferredSizeOfPasswordView() {
|
| - // TODO(gcasto): Implement this function.
|
| - return gfx::Size();
|
| + return gfx::Size(NSSizeToCGSize([view_ preferredSize]));
|
| }
|
|
|
| void PasswordGenerationPopupViewBridge::UpdateBoundsAndRedrawPopup() {
|
| @@ -50,8 +48,7 @@ void PasswordGenerationPopupViewBridge::PasswordSelectionUpdated() {
|
|
|
| bool PasswordGenerationPopupViewBridge::IsPointInPasswordBounds(
|
| const gfx::Point& point) {
|
| - // TODO(gcasto): Implement this function.
|
| - return true;
|
| + return [view_ isPointInPasswordBounds:NSPointFromCGPoint(point.ToCGPoint())];
|
| }
|
|
|
| PasswordGenerationPopupView* PasswordGenerationPopupView::Create(
|
|
|