summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/html_dialog_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/html_dialog_view.cc')
-rw-r--r--chrome/browser/ui/views/html_dialog_view.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/ui/views/html_dialog_view.cc b/chrome/browser/ui/views/html_dialog_view.cc
index 010b943..55f4148 100644
--- a/chrome/browser/ui/views/html_dialog_view.cc
+++ b/chrome/browser/ui/views/html_dialog_view.cc
@@ -148,7 +148,7 @@ void HtmlDialogView::OnDialogClosed(const std::string& json_retval) {
delegate_ = NULL; // We will not communicate further with the delegate.
dialog_delegate->OnDialogClosed(json_retval);
}
- window()->CloseWindow();
+ window()->Close();
}
void HtmlDialogView::OnWindowClosed() {
@@ -193,7 +193,8 @@ void HtmlDialogView::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
DefWindowProc(event.os_event.hwnd, event.os_event.message,
event.os_event.wParam, event.os_event.lParam);
#elif defined(TOOLKIT_USES_GTK)
- views::WindowGtk* window_gtk = static_cast<views::WindowGtk*>(window());
+ views::WindowGtk* window_gtk =
+ static_cast<views::WindowGtk*>(window()->native_window());
if (event.os_event && !event.skip_in_browser) {
views::KeyEvent views_event(reinterpret_cast<GdkEvent*>(event.os_event));
window_gtk->HandleKeyboardEvent(views_event);