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

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetBase.h

Issue 2884563003: Move WebFrameWidgetBase to core/frame/. (Closed)
Patch Set: Fix windows build error. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/BUILD.gn ('k') | third_party/WebKit/Source/web/WebFrameWidgetBase.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebFrameWidgetBase.h
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetBase.h b/third_party/WebKit/Source/web/WebFrameWidgetBase.h
deleted file mode 100644
index ef640ac314754e634c067de03da8f261a52f0703..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/web/WebFrameWidgetBase.h
+++ /dev/null
@@ -1,133 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WebFrameWidgetBase_h
-#define WebFrameWidgetBase_h
-
-#include "core/clipboard/DataObject.h"
-#include "platform/UserGestureIndicator.h"
-#include "platform/wtf/Assertions.h"
-#include "public/platform/WebDragData.h"
-#include "public/web/WebFrameWidget.h"
-
-namespace blink {
-
-class AnimationWorkletProxyClient;
-class CompositorAnimationHost;
-class CompositorWorkerProxyClient;
-class GraphicsLayer;
-class WebImage;
-class WebLayer;
-class WebLayerTreeView;
-class WebViewBase;
-class HitTestResult;
-struct WebPoint;
-
-class WebFrameWidgetBase : public WebFrameWidget {
- public:
- virtual bool ForSubframe() const = 0;
- virtual void ScheduleAnimation() = 0;
- virtual CompositorWorkerProxyClient* CreateCompositorWorkerProxyClient() = 0;
- virtual AnimationWorkletProxyClient* CreateAnimationWorkletProxyClient() = 0;
- virtual WebWidgetClient* Client() const = 0;
-
- // Sets the root graphics layer. |GraphicsLayer| can be null when detaching
- // the root layer.
- virtual void SetRootGraphicsLayer(GraphicsLayer*) = 0;
-
- // Sets the root layer. |WebLayer| can be null when detaching the root layer.
- virtual void SetRootLayer(WebLayer*) = 0;
-
- virtual WebLayerTreeView* GetLayerTreeView() const = 0;
- virtual CompositorAnimationHost* AnimationHost() const = 0;
-
- virtual HitTestResult CoreHitTestResultAt(const WebPoint&) = 0;
-
- // WebFrameWidget implementation.
- WebDragOperation DragTargetDragEnter(const WebDragData&,
- const WebPoint& point_in_viewport,
- const WebPoint& screen_point,
- WebDragOperationsMask operations_allowed,
- int modifiers) override;
- WebDragOperation DragTargetDragOver(const WebPoint& point_in_viewport,
- const WebPoint& screen_point,
- WebDragOperationsMask operations_allowed,
- int modifiers) override;
- void DragTargetDragLeave(const WebPoint& point_in_viewport,
- const WebPoint& screen_point) override;
- void DragTargetDrop(const WebDragData&,
- const WebPoint& point_in_viewport,
- const WebPoint& screen_point,
- int modifiers) override;
- void DragSourceEndedAt(const WebPoint& point_in_viewport,
- const WebPoint& screen_point,
- WebDragOperation) override;
- void DragSourceSystemDragEnded() override;
-
- // Called when a drag-n-drop operation should begin.
- void StartDragging(WebReferrerPolicy,
- const WebDragData&,
- WebDragOperationsMask,
- const WebImage& drag_image,
- const WebPoint& drag_image_offset);
-
- bool DoingDragAndDrop() { return doing_drag_and_drop_; }
- static void SetIgnoreInputEvents(bool value) { ignore_input_events_ = value; }
- static bool IgnoreInputEvents() { return ignore_input_events_; }
-
- // WebWidget methods.
- void DidAcquirePointerLock() override;
- void DidNotAcquirePointerLock() override;
- void DidLosePointerLock() override;
-
- protected:
- enum DragAction { kDragEnter, kDragOver };
-
- // Consolidate some common code between starting a drag over a target and
- // updating a drag over a target. If we're starting a drag, |isEntering|
- // should be true.
- WebDragOperation DragTargetDragEnterOrOver(const WebPoint& point_in_viewport,
- const WebPoint& screen_point,
- DragAction,
- int modifiers);
-
- // Helper function to call VisualViewport::viewportToRootFrame().
- WebPoint ViewportToRootFrame(const WebPoint& point_in_viewport) const;
-
- WebViewBase* View() const;
-
- // Returns the page object associated with this widget. This may be null when
- // the page is shutting down, but will be valid at all other times.
- Page* GetPage() const;
-
- // A copy of the web drop data object we received from the browser.
- Persistent<DataObject> current_drag_data_;
-
- bool doing_drag_and_drop_ = false;
-
- // The available drag operations (copy, move link...) allowed by the source.
- WebDragOperation operations_allowed_ = kWebDragOperationNone;
-
- // The current drag operation as negotiated by the source and destination.
- // When not equal to DragOperationNone, the drag data can be dropped onto the
- // current drop target in this WebView (the drop target can accept the drop).
- WebDragOperation drag_operation_ = kWebDragOperationNone;
-
- // Helper function to process events while pointer locked.
- void PointerLockMouseEvent(const WebInputEvent&);
-
- private:
- void CancelDrag();
-
- static bool ignore_input_events_;
- RefPtr<UserGestureToken> pointer_lock_gesture_token_;
-
- friend class WebViewImpl;
-};
-
-DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true);
-
-} // namespace blink
-
-#endif
« no previous file with comments | « third_party/WebKit/Source/web/BUILD.gn ('k') | third_party/WebKit/Source/web/WebFrameWidgetBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698