| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 | 8 |
| 9 MSVC_PUSH_WARNING_LEVEL(0); | 9 MSVC_PUSH_WARNING_LEVEL(0); |
| 10 #include "Cursor.h" | 10 #include "Cursor.h" |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 focus_on_show)); | 461 focus_on_show)); |
| 462 webwidget->Init(popup_view, webkit_glue::FromIntRect(bounds)); | 462 webwidget->Init(popup_view, webkit_glue::FromIntRect(bounds)); |
| 463 } | 463 } |
| 464 } | 464 } |
| 465 | 465 |
| 466 void ChromeClientImpl::SetCursor(const WebCursor& cursor) { | 466 void ChromeClientImpl::SetCursor(const WebCursor& cursor) { |
| 467 WebViewDelegate* d = webview_->delegate(); | 467 WebViewDelegate* d = webview_->delegate(); |
| 468 if (d) | 468 if (d) |
| 469 d->SetCursor(webview_, cursor); | 469 d->SetCursor(webview_, cursor); |
| 470 } | 470 } |
| 471 |
| 472 void ChromeClientImpl::enableSuddenTermination() { |
| 473 WebViewDelegate* d = webview_->delegate(); |
| 474 if (d) |
| 475 d->EnableSuddenTermination(); |
| 476 } |
| 477 |
| 478 void ChromeClientImpl::disableSuddenTermination() { |
| 479 WebViewDelegate* d = webview_->delegate(); |
| 480 if (d) |
| 481 d->DisableSuddenTermination(); |
| 482 } |
| OLD | NEW |