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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 } | 441 } |
442 | 442 |
443 return screen_rect; | 443 return screen_rect; |
444 } | 444 } |
445 | 445 |
446 PlatformWidget ChromeClientImpl::platformWindow() const { | 446 PlatformWidget ChromeClientImpl::platformWindow() const { |
447 WebViewDelegate* delegate = webview_->delegate(); | 447 WebViewDelegate* delegate = webview_->delegate(); |
448 return delegate ? delegate->GetContainingView(webview_) : NULL; | 448 return delegate ? delegate->GetContainingView(webview_) : NULL; |
449 } | 449 } |
450 | 450 |
| 451 void ChromeClientImpl::contentsSizeChanged(WebCore::Frame* frame, const |
| 452 WebCore::IntSize& size) const { |
| 453 WebViewDelegate* delegate = webview_->delegate(); |
| 454 |
| 455 if (delegate) { |
| 456 delegate->DidContentsSizeChange(webview_, size.width(), size.height()); |
| 457 } |
| 458 } |
| 459 |
451 void ChromeClientImpl::mouseDidMoveOverElement( | 460 void ChromeClientImpl::mouseDidMoveOverElement( |
452 const WebCore::HitTestResult& result, unsigned modifierFlags) { | 461 const WebCore::HitTestResult& result, unsigned modifierFlags) { |
453 // Find out if the mouse is over a link, and if so, let our UI know... somehow | 462 // Find out if the mouse is over a link, and if so, let our UI know... somehow |
454 WebViewDelegate* delegate = webview_->delegate(); | 463 WebViewDelegate* delegate = webview_->delegate(); |
455 if (delegate) { | 464 if (delegate) { |
456 if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) { | 465 if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) { |
457 delegate->UpdateTargetURL( | 466 delegate->UpdateTargetURL( |
458 webview_, webkit_glue::KURLToGURL(result.absoluteLinkURL())); | 467 webview_, webkit_glue::KURLToGURL(result.absoluteLinkURL())); |
459 } else { | 468 } else { |
460 delegate->UpdateTargetURL(webview_, GURL()); | 469 delegate->UpdateTargetURL(webview_, GURL()); |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 WebViewDelegate* delegate = webview_->delegate(); | 597 WebViewDelegate* delegate = webview_->delegate(); |
589 if (delegate) | 598 if (delegate) |
590 delegate->DisableSuddenTermination(); | 599 delegate->DisableSuddenTermination(); |
591 } | 600 } |
592 | 601 |
593 void ChromeClientImpl::formStateDidChange(const WebCore::Node*) { | 602 void ChromeClientImpl::formStateDidChange(const WebCore::Node*) { |
594 WebViewDelegate* delegate = webview_->delegate(); | 603 WebViewDelegate* delegate = webview_->delegate(); |
595 if (delegate) | 604 if (delegate) |
596 delegate->OnNavStateChanged(webview_); | 605 delegate->OnNavStateChanged(webview_); |
597 } | 606 } |
OLD | NEW |