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

Side by Side Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 1888773003: Merge DragClientImpl into core. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missing file. Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 if (toNode && toNode->isElementNode() && toElement(toNode)->isLiveLink() && toNode->shouldHaveFocusAppearance()) 246 if (toNode && toNode->isElementNode() && toElement(toNode)->isLiveLink() && toNode->shouldHaveFocusAppearance())
247 focusURL = toElement(toNode)->hrefURL(); 247 focusURL = toElement(toNode)->hrefURL();
248 m_webView->client()->setKeyboardFocusURL(focusURL); 248 m_webView->client()->setKeyboardFocusURL(focusURL);
249 } 249 }
250 250
251 bool ChromeClientImpl::hadFormInteraction() const 251 bool ChromeClientImpl::hadFormInteraction() const
252 { 252 {
253 return m_webView->pageImportanceSignals() && m_webView->pageImportanceSignal s()->hadFormInteraction(); 253 return m_webView->pageImportanceSignals() && m_webView->pageImportanceSignal s()->hadFormInteraction();
254 } 254 }
255 255
256 void ChromeClientImpl::startDragging(LocalFrame* frame,
257 const WebDragData& dragData,
258 WebDragOperationsMask mask,
259 const WebImage& dragImage,
260 const WebPoint& dragImageOffset)
261 {
262 m_webView->startDragging(frame, dragData, mask, dragImage, dragImageOffset);
263 }
264
265 bool ChromeClientImpl::acceptsLoadDrops() const
266 {
267 return !m_webView->client() || m_webView->client()->acceptsLoadDrops();
268 }
269
256 namespace { 270 namespace {
257 271
258 void updatePolicyForEvent(const WebInputEvent* inputEvent, NavigationPolicy* pol icy) 272 void updatePolicyForEvent(const WebInputEvent* inputEvent, NavigationPolicy* pol icy)
259 { 273 {
260 if (!inputEvent) 274 if (!inputEvent)
261 return; 275 return;
262 276
263 unsigned short buttonNumber = 0; 277 unsigned short buttonNumber = 0;
264 if (inputEvent->type == WebInputEvent::MouseUp) { 278 if (inputEvent->type == WebInputEvent::MouseUp) {
265 279
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 if (m_webView->pageImportanceSignals()) 1108 if (m_webView->pageImportanceSignals())
1095 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript(); 1109 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript();
1096 } 1110 }
1097 1111
1098 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler(BlameContex t* blameContext) 1112 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler(BlameContex t* blameContext)
1099 { 1113 {
1100 return adoptPtr(m_webView->scheduler()->createFrameScheduler(blameContext).r elease()); 1114 return adoptPtr(m_webView->scheduler()->createFrameScheduler(blameContext).r elease());
1101 } 1115 }
1102 1116
1103 } // namespace blink 1117 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698