Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: webkit/glue/chrome_client_impl.cc

Issue 212004: Implement WebKitTabToLinksPreferenceKey for the test_shell.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/glue/webpreferences.h » ('j') | webkit/glue/webview.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 webkit_glue::StringToWebString(message)); 407 webkit_glue::StringToWebString(message));
408 } 408 }
409 } 409 }
410 410
411 bool ChromeClientImpl::shouldInterruptJavaScript() { 411 bool ChromeClientImpl::shouldInterruptJavaScript() {
412 // TODO(mbelshe): implement me 412 // TODO(mbelshe): implement me
413 return false; 413 return false;
414 } 414 }
415 415
416 bool ChromeClientImpl::tabsToLinks() const { 416 bool ChromeClientImpl::tabsToLinks() const {
417 // TODO(pamg): Consider controlling this with a user preference, when we have 417 return webview_->GetTabsToLinks();
418 // a preference system in place.
419 // For now Chrome will allow link to take focus if we're not running layout
420 // tests.
421 return !WebKit::layoutTestMode();
422 } 418 }
423 419
424 WebCore::IntRect ChromeClientImpl::windowResizerRect() const { 420 WebCore::IntRect ChromeClientImpl::windowResizerRect() const {
425 WebCore::IntRect result; 421 WebCore::IntRect result;
426 if (webview_->delegate()) { 422 if (webview_->delegate()) {
427 result = webkit_glue::WebRectToIntRect( 423 result = webkit_glue::WebRectToIntRect(
428 webview_->delegate()->windowResizerRect()); 424 webview_->delegate()->windowResizerRect());
429 } 425 }
430 return result; 426 return result;
431 } 427 }
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 info->itemHeight = popup_container->menuItemHeight(); 617 info->itemHeight = popup_container->menuItemHeight();
622 info->selectedIndex = popup_container->selectedIndex(); 618 info->selectedIndex = popup_container->selectedIndex();
623 info->items.swap(output_items); 619 info->items.swap(output_items);
624 } 620 }
625 621
626 #if ENABLE(NOTIFICATIONS) 622 #if ENABLE(NOTIFICATIONS)
627 WebCore::NotificationPresenter* ChromeClientImpl::notificationPresenter() const { 623 WebCore::NotificationPresenter* ChromeClientImpl::notificationPresenter() const {
628 return webview_->GetNotificationPresenter(); 624 return webview_->GetNotificationPresenter();
629 } 625 }
630 #endif 626 #endif
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/webpreferences.h » ('j') | webkit/glue/webview.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698