| 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 "AccessibilityObject.h" | 10 #include "AccessibilityObject.h" |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 if (delegate) { | 470 if (delegate) { |
| 471 WebRect window_rect; | 471 WebRect window_rect; |
| 472 delegate->GetWindowRect(webview_, &window_rect); | 472 delegate->GetWindowRect(webview_, &window_rect); |
| 473 screen_rect.move(window_rect.x, window_rect.y); | 473 screen_rect.move(window_rect.x, window_rect.y); |
| 474 } | 474 } |
| 475 | 475 |
| 476 return screen_rect; | 476 return screen_rect; |
| 477 } | 477 } |
| 478 | 478 |
| 479 PlatformWidget ChromeClientImpl::platformWindow() const { | 479 PlatformWidget ChromeClientImpl::platformWindow() const { |
| 480 WebViewDelegate* delegate = webview_->delegate(); | 480 return NULL; |
| 481 return delegate ? delegate->GetContainingView(webview_) : NULL; | |
| 482 } | 481 } |
| 483 | 482 |
| 484 void ChromeClientImpl::contentsSizeChanged(WebCore::Frame* frame, const | 483 void ChromeClientImpl::contentsSizeChanged(WebCore::Frame* frame, const |
| 485 WebCore::IntSize& size) const { | 484 WebCore::IntSize& size) const { |
| 486 WebViewDelegate* delegate = webview_->delegate(); | 485 WebViewDelegate* delegate = webview_->delegate(); |
| 487 | 486 |
| 488 if (delegate) { | 487 if (delegate) { |
| 489 delegate->DidContentsSizeChange(webview_, size.width(), size.height()); | 488 delegate->DidContentsSizeChange(webview_, size.width(), size.height()); |
| 490 } | 489 } |
| 491 } | 490 } |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 // EventHandler.cpp and since we don't want that we set a flag indicating | 619 // EventHandler.cpp and since we don't want that we set a flag indicating |
| 621 // that the next SetCursor call is to be ignored. | 620 // that the next SetCursor call is to be ignored. |
| 622 ignore_next_set_cursor_ = true; | 621 ignore_next_set_cursor_ = true; |
| 623 } | 622 } |
| 624 | 623 |
| 625 void ChromeClientImpl::formStateDidChange(const WebCore::Node*) { | 624 void ChromeClientImpl::formStateDidChange(const WebCore::Node*) { |
| 626 WebViewDelegate* delegate = webview_->delegate(); | 625 WebViewDelegate* delegate = webview_->delegate(); |
| 627 if (delegate) | 626 if (delegate) |
| 628 delegate->OnNavStateChanged(webview_); | 627 delegate->OnNavStateChanged(webview_); |
| 629 } | 628 } |
| OLD | NEW |