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 "AccessibilityObject.h" | 7 #include "AccessibilityObject.h" |
8 #include "AXObjectCache.h" | 8 #include "AXObjectCache.h" |
9 #include "CharacterNames.h" | 9 #include "CharacterNames.h" |
10 #include "Console.h" | 10 #include "Console.h" |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 if (webview_->client()) { | 444 if (webview_->client()) { |
445 int dx = scroll_delta.width(); | 445 int dx = scroll_delta.width(); |
446 int dy = scroll_delta.height(); | 446 int dy = scroll_delta.height(); |
447 webview_->client()->didScrollRect( | 447 webview_->client()->didScrollRect( |
448 dx, dy, webkit_glue::IntRectToWebRect(clip_rect)); | 448 dx, dy, webkit_glue::IntRectToWebRect(clip_rect)); |
449 } | 449 } |
450 } | 450 } |
451 | 451 |
452 WebCore::IntPoint ChromeClientImpl::screenToWindow( | 452 WebCore::IntPoint ChromeClientImpl::screenToWindow( |
453 const WebCore::IntPoint&) const { | 453 const WebCore::IntPoint&) const { |
454 NOTIMPLEMENTED(); | 454 notImplemented(); |
455 return WebCore::IntPoint(); | 455 return WebCore::IntPoint(); |
456 } | 456 } |
457 | 457 |
458 WebCore::IntRect ChromeClientImpl::windowToScreen( | 458 WebCore::IntRect ChromeClientImpl::windowToScreen( |
459 const WebCore::IntRect& rect) const { | 459 const WebCore::IntRect& rect) const { |
460 WebCore::IntRect screen_rect(rect); | 460 WebCore::IntRect screen_rect(rect); |
461 | 461 |
462 if (webview_->client()) { | 462 if (webview_->client()) { |
463 WebRect window_rect = webview_->client()->windowRect(); | 463 WebRect window_rect = webview_->client()->windowRect(); |
464 screen_rect.move(window_rect.x, window_rect.y); | 464 screen_rect.move(window_rect.x, window_rect.y); |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 case PopupItem::TypeOption: | 609 case PopupItem::TypeOption: |
610 output_item.type = WebPopupMenuInfo::Item::Option; | 610 output_item.type = WebPopupMenuInfo::Item::Option; |
611 break; | 611 break; |
612 case PopupItem::TypeGroup: | 612 case PopupItem::TypeGroup: |
613 output_item.type = WebPopupMenuInfo::Item::Group; | 613 output_item.type = WebPopupMenuInfo::Item::Group; |
614 break; | 614 break; |
615 case PopupItem::TypeSeparator: | 615 case PopupItem::TypeSeparator: |
616 output_item.type = WebPopupMenuInfo::Item::Separator; | 616 output_item.type = WebPopupMenuInfo::Item::Separator; |
617 break; | 617 break; |
618 default: | 618 default: |
619 NOTREACHED(); | 619 ASSERT_NOT_REACHED(); |
620 } | 620 } |
621 } | 621 } |
622 | 622 |
623 info->itemHeight = popup_container->menuItemHeight(); | 623 info->itemHeight = popup_container->menuItemHeight(); |
624 info->selectedIndex = popup_container->selectedIndex(); | 624 info->selectedIndex = popup_container->selectedIndex(); |
625 info->items.swap(output_items); | 625 info->items.swap(output_items); |
626 } | 626 } |
627 | 627 |
628 #if ENABLE(NOTIFICATIONS) | 628 #if ENABLE(NOTIFICATIONS) |
629 WebCore::NotificationPresenter* ChromeClientImpl::notificationPresenter() const
{ | 629 WebCore::NotificationPresenter* ChromeClientImpl::notificationPresenter() const
{ |
630 return webview_->GetNotificationPresenter(); | 630 return webview_->GetNotificationPresenter(); |
631 } | 631 } |
632 #endif | 632 #endif |
OLD | NEW |