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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 gfx::Rect window_rect; | 402 gfx::Rect window_rect; |
403 d->GetWindowRect(webview_, &window_rect); | 403 d->GetWindowRect(webview_, &window_rect); |
404 screen_rect.move(window_rect.x(), window_rect.y()); | 404 screen_rect.move(window_rect.x(), window_rect.y()); |
405 } | 405 } |
406 | 406 |
407 return screen_rect; | 407 return screen_rect; |
408 } | 408 } |
409 | 409 |
410 PlatformWidget ChromeClientImpl::platformWindow() const { | 410 PlatformWidget ChromeClientImpl::platformWindow() const { |
411 WebViewDelegate* d = webview_->delegate(); | 411 WebViewDelegate* d = webview_->delegate(); |
412 return d ? d->GetContainingWindow(webview_) : NULL; | 412 return d ? d->GetContainingView(webview_) : NULL; |
413 } | 413 } |
414 | 414 |
415 void ChromeClientImpl::mouseDidMoveOverElement( | 415 void ChromeClientImpl::mouseDidMoveOverElement( |
416 const WebCore::HitTestResult& result, unsigned modifierFlags) { | 416 const WebCore::HitTestResult& result, unsigned modifierFlags) { |
417 // Find out if the mouse is over a link, and if so, let our UI know... somehow | 417 // Find out if the mouse is over a link, and if so, let our UI know... somehow |
418 WebViewDelegate* d = webview_->delegate(); | 418 WebViewDelegate* d = webview_->delegate(); |
419 if (d) { | 419 if (d) { |
420 if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) { | 420 if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) { |
421 d->UpdateTargetURL(webview_, webkit_glue::KURLToGURL(result.absoluteLinkUR
L())); | 421 d->UpdateTargetURL(webview_, webkit_glue::KURLToGURL(result.absoluteLinkUR
L())); |
422 } else { | 422 } else { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } |
OLD | NEW |