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

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 2501213002: Drag-and-drop: dragSourceEndedAt, dragSourceSystemDragEnded (Closed)
Patch Set: Rebased. Added check for !GetWebWidget(). Created 4 years, 1 month 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 void enableAutoResizeMode(const WebSize& minSize, 233 void enableAutoResizeMode(const WebSize& minSize,
234 const WebSize& maxSize) override; 234 const WebSize& maxSize) override;
235 void disableAutoResizeMode() override; 235 void disableAutoResizeMode() override;
236 void performMediaPlayerAction(const WebMediaPlayerAction& action, 236 void performMediaPlayerAction(const WebMediaPlayerAction& action,
237 const WebPoint& location) override; 237 const WebPoint& location) override;
238 void performPluginAction(const WebPluginAction&, const WebPoint&) override; 238 void performPluginAction(const WebPluginAction&, const WebPoint&) override;
239 void audioStateChanged(bool isAudioPlaying) override; 239 void audioStateChanged(bool isAudioPlaying) override;
240 WebHitTestResult hitTestResultAt(const WebPoint&) override; 240 WebHitTestResult hitTestResultAt(const WebPoint&) override;
241 WebHitTestResult hitTestResultForTap(const WebPoint&, 241 WebHitTestResult hitTestResultForTap(const WebPoint&,
242 const WebSize&) override; 242 const WebSize&) override;
243 void dragSourceEndedAt(const WebPoint& pointInViewport,
244 const WebPoint& screenPoint,
245 WebDragOperation) override;
246 void dragSourceSystemDragEnded() override;
247 void spellingMarkers(WebVector<uint32_t>* markers) override; 243 void spellingMarkers(WebVector<uint32_t>* markers) override;
248 void removeSpellingMarkersUnderWords( 244 void removeSpellingMarkersUnderWords(
249 const WebVector<WebString>& words) override; 245 const WebVector<WebString>& words) override;
250 unsigned long createUniqueIdentifierForRequest() override; 246 unsigned long createUniqueIdentifierForRequest() override;
251 void enableDeviceEmulation(const WebDeviceEmulationParams&) override; 247 void enableDeviceEmulation(const WebDeviceEmulationParams&) override;
252 void disableDeviceEmulation() override; 248 void disableDeviceEmulation() override;
253 WebAXObject accessibilityObject() override; 249 WebAXObject accessibilityObject() override;
254 void setSelectionColors(unsigned activeBackgroundColor, 250 void setSelectionColors(unsigned activeBackgroundColor,
255 unsigned activeForegroundColor, 251 unsigned activeForegroundColor,
256 unsigned inactiveBackgroundColor, 252 unsigned inactiveBackgroundColor,
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } 496 FloatSize elasticOverscroll() const { return m_elasticOverscroll; }
501 497
502 bool isTransparent() const; 498 bool isTransparent() const;
503 void setIsTransparent(bool value); 499 void setIsTransparent(bool value);
504 500
505 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } 501 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; }
506 502
507 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); } 503 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); }
508 504
509 void setDoingDragAndDrop(bool doing) { m_doingDragAndDrop = doing; } 505 void setDoingDragAndDrop(bool doing) { m_doingDragAndDrop = doing; }
506 bool doingDragAndDrop() { return m_doingDragAndDrop; }
510 507
511 // Returns the currently active WebInputMethodController which the one 508 // Returns the currently active WebInputMethodController which the one
512 // corresponding to the focused frame. It will return nullptr if there are 509 // corresponding to the focused frame. It will return nullptr if there are
513 // none or |m_imeAcceptEvents| is false. 510 // none or |m_imeAcceptEvents| is false.
514 WebInputMethodControllerImpl* getActiveWebInputMethodController() const; 511 WebInputMethodControllerImpl* getActiveWebInputMethodController() const;
515 512
516 private: 513 private:
517 InspectorOverlay* inspectorOverlay(); 514 InspectorOverlay* inspectorOverlay();
518 515
519 void setPageScaleFactorAndLocation(float, const FloatPoint&); 516 void setPageScaleFactorAndLocation(float, const FloatPoint&);
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; 742 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
746 }; 743 };
747 744
748 // We have no ways to check if the specified WebView is an instance of 745 // We have no ways to check if the specified WebView is an instance of
749 // WebViewImpl because WebViewImpl is the only implementation of WebView. 746 // WebViewImpl because WebViewImpl is the only implementation of WebView.
750 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 747 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
751 748
752 } // namespace blink 749 } // namespace blink
753 750
754 #endif 751 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698