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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 std::wstring suggestion; | 454 std::wstring suggestion; |
455 if (fileChooser->filenames().size() > 0) | 455 if (fileChooser->filenames().size() > 0) |
456 suggestion = webkit_glue::StringToStdWString(fileChooser->filenames()[0]); | 456 suggestion = webkit_glue::StringToStdWString(fileChooser->filenames()[0]); |
457 | 457 |
458 WebFileChooserCallbackImpl* chooser = new WebFileChooserCallbackImpl(fileChoos
er); | 458 WebFileChooserCallbackImpl* chooser = new WebFileChooserCallbackImpl(fileChoos
er); |
459 delegate->RunFileChooser(suggestion, chooser); | 459 delegate->RunFileChooser(suggestion, chooser); |
460 } | 460 } |
461 | 461 |
462 void ChromeClientImpl::popupOpened(WebCore::FramelessScrollView* popup_view, | 462 void ChromeClientImpl::popupOpened(WebCore::FramelessScrollView* popup_view, |
463 const WebCore::IntRect& bounds, | 463 const WebCore::IntRect& bounds, |
464 bool focus_on_show) { | 464 bool activatable) { |
465 WebViewDelegate* d = webview_->delegate(); | 465 WebViewDelegate* d = webview_->delegate(); |
466 if (d) { | 466 if (d) { |
467 WebWidgetImpl* webwidget = | 467 WebWidgetImpl* webwidget = |
468 static_cast<WebWidgetImpl*>(d->CreatePopupWidget(webview_, | 468 static_cast<WebWidgetImpl*>(d->CreatePopupWidget(webview_, |
469 focus_on_show)); | 469 activatable)); |
470 webwidget->Init(popup_view, webkit_glue::FromIntRect(bounds)); | 470 webwidget->Init(popup_view, webkit_glue::FromIntRect(bounds)); |
471 } | 471 } |
472 } | 472 } |
473 | 473 |
474 void ChromeClientImpl::SetCursor(const WebCursor& cursor) { | 474 void ChromeClientImpl::SetCursor(const WebCursor& cursor) { |
475 WebViewDelegate* d = webview_->delegate(); | 475 WebViewDelegate* d = webview_->delegate(); |
476 if (d) | 476 if (d) |
477 d->SetCursor(webview_, cursor); | 477 d->SetCursor(webview_, cursor); |
478 } | 478 } |
479 | 479 |
480 void ChromeClientImpl::enableSuddenTermination() { | 480 void ChromeClientImpl::enableSuddenTermination() { |
481 WebViewDelegate* d = webview_->delegate(); | 481 WebViewDelegate* d = webview_->delegate(); |
482 if (d) | 482 if (d) |
483 d->EnableSuddenTermination(); | 483 d->EnableSuddenTermination(); |
484 } | 484 } |
485 | 485 |
486 void ChromeClientImpl::disableSuddenTermination() { | 486 void ChromeClientImpl::disableSuddenTermination() { |
487 WebViewDelegate* d = webview_->delegate(); | 487 WebViewDelegate* d = webview_->delegate(); |
488 if (d) | 488 if (d) |
489 d->DisableSuddenTermination(); | 489 d->DisableSuddenTermination(); |
490 } | 490 } |
491 | 491 |
492 void ChromeClientImpl::formStateDidChange(const WebCore::Node*) { | 492 void ChromeClientImpl::formStateDidChange(const WebCore::Node*) { |
493 WebViewDelegate* d = webview_->delegate(); | 493 WebViewDelegate* d = webview_->delegate(); |
494 if (d) | 494 if (d) |
495 d->OnNavStateChanged(webview_); | 495 d->OnNavStateChanged(webview_); |
496 } | 496 } |
OLD | NEW |