| Index: chrome/browser/ui/views/keyboard_overlay_delegate.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/keyboard_overlay_delegate.cc (revision 133279)
|
| +++ chrome/browser/ui/views/keyboard_overlay_delegate.cc (working copy)
|
| @@ -15,6 +15,7 @@
|
| #include "grit/generated_resources.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "ui/gfx/screen.h"
|
| +#include "ui/views/widget/widget.h"
|
|
|
| using content::WebContents;
|
| using content::WebUIMessageHandler;
|
| @@ -57,7 +58,7 @@
|
| using std::min;
|
| DCHECK(view_);
|
| gfx::Rect rect = gfx::Screen::GetMonitorAreaNearestWindow(
|
| - view_->native_view());
|
| + view_->GetWidget()->GetNativeView());
|
| const int width = min(kBaseWidth, rect.width() - kHorizontalMargin);
|
| const int height = width * kBaseHeight / kBaseWidth;
|
| size->SetSize(width, height);
|
|
|