Commit 24c277ea authored by Nicholas Verne's avatar Nicholas Verne Committed by Commit Bot

Moves WebFrameWidgetImpl to core/frame

Bug: 712963
Change-Id: Ib2f117d83dcf34c505249335197f797ccd962554
Reviewed-on: https://chromium-review.googlesource.com/572477
Commit-Queue: Nicholas Verne <nverne@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#487038}
parent f0cf5149
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#define CompositorMutatorImpl_h #define CompositorMutatorImpl_h
#include <memory> #include <memory>
#include "core/animation/CompositorAnimator.h"
#include "core/animation/CustomCompositorAnimationManager.h" #include "core/animation/CustomCompositorAnimationManager.h"
#include "platform/graphics/CompositorMutator.h" #include "platform/graphics/CompositorMutator.h"
#include "platform/heap/Handle.h" #include "platform/heap/Handle.h"
...@@ -14,7 +15,6 @@ ...@@ -14,7 +15,6 @@
namespace blink { namespace blink {
class CompositorAnimator;
class CompositorMutatorClient; class CompositorMutatorClient;
// Fans out requests from the compositor to all of the registered // Fans out requests from the compositor to all of the registered
......
...@@ -130,6 +130,8 @@ blink_core_sources("frame") { ...@@ -130,6 +130,8 @@ blink_core_sources("frame") {
"WebFrameSerializerImpl.h", "WebFrameSerializerImpl.h",
"WebFrameWidgetBase.cpp", "WebFrameWidgetBase.cpp",
"WebFrameWidgetBase.h", "WebFrameWidgetBase.h",
"WebFrameWidgetImpl.cpp",
"WebFrameWidgetImpl.h",
"WebLocalFrameBase.cpp", "WebLocalFrameBase.cpp",
"WebLocalFrameBase.h", "WebLocalFrameBase.h",
"WebRemoteFrameBase.cpp", "WebRemoteFrameBase.cpp",
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "web/WebFrameWidgetImpl.h" #include "core/frame/WebFrameWidgetImpl.h"
#include <memory> #include <memory>
...@@ -824,9 +824,10 @@ void WebFrameWidgetImpl::HandleMouseDown(LocalFrame& main_frame, ...@@ -824,9 +824,10 @@ void WebFrameWidgetImpl::HandleMouseDown(LocalFrame& main_frame,
PageWidgetEventHandler::HandleMouseDown(main_frame, event); PageWidgetEventHandler::HandleMouseDown(main_frame, event);
if (event.button == WebMouseEvent::Button::kLeft && mouse_capture_node_) if (event.button == WebMouseEvent::Button::kLeft && mouse_capture_node_) {
mouse_capture_gesture_token_ = mouse_capture_gesture_token_ =
main_frame.GetEventHandler().TakeLastMouseDownGestureToken(); main_frame.GetEventHandler().TakeLastMouseDownGestureToken();
}
if (view_impl->GetPagePopup() && page_popup && if (view_impl->GetPagePopup() && page_popup &&
ToWebPagePopupImpl(view_impl->GetPagePopup()) ToWebPagePopupImpl(view_impl->GetPagePopup())
...@@ -1022,9 +1023,10 @@ WebInputEventResult WebFrameWidgetImpl::HandleCharEvent( ...@@ -1022,9 +1023,10 @@ WebInputEventResult WebFrameWidgetImpl::HandleCharEvent(
suppress_next_keypress_event_ = false; suppress_next_keypress_event_ = false;
LocalFrame* frame = ToLocalFrame(FocusedCoreFrame()); LocalFrame* frame = ToLocalFrame(FocusedCoreFrame());
if (!frame) if (!frame) {
return suppress ? WebInputEventResult::kHandledSuppressed return suppress ? WebInputEventResult::kHandledSuppressed
: WebInputEventResult::kNotHandled; : WebInputEventResult::kNotHandled;
}
EventHandler& handler = frame->GetEventHandler(); EventHandler& handler = frame->GetEventHandler();
...@@ -1186,9 +1188,10 @@ HitTestResult WebFrameWidgetImpl::CoreHitTestResultAt( ...@@ -1186,9 +1188,10 @@ HitTestResult WebFrameWidgetImpl::CoreHitTestResultAt(
void WebFrameWidgetImpl::SetVisibilityState( void WebFrameWidgetImpl::SetVisibilityState(
WebPageVisibilityState visibility_state) { WebPageVisibilityState visibility_state) {
if (layer_tree_view_) if (layer_tree_view_) {
layer_tree_view_->SetVisible(visibility_state == layer_tree_view_->SetVisible(visibility_state ==
kWebPageVisibilityStateVisible); kWebPageVisibilityStateVisible);
}
} }
HitTestResult WebFrameWidgetImpl::HitTestResultForRootFramePos( HitTestResult WebFrameWidgetImpl::HitTestResultForRootFramePos(
......
...@@ -45,8 +45,6 @@ component("web") { ...@@ -45,8 +45,6 @@ component("web") {
"WebExport.h", "WebExport.h",
"WebFactoryImpl.cpp", "WebFactoryImpl.cpp",
"WebFactoryImpl.h", "WebFactoryImpl.h",
"WebFrameWidgetImpl.cpp",
"WebFrameWidgetImpl.h",
"WebKit.cpp", "WebKit.cpp",
"WebLocalFrameImpl.cpp", "WebLocalFrameImpl.cpp",
"WebLocalFrameImpl.h", "WebLocalFrameImpl.h",
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
#include "core/frame/Settings.h" #include "core/frame/Settings.h"
#include "core/frame/UseCounter.h" #include "core/frame/UseCounter.h"
#include "core/frame/VisualViewport.h" #include "core/frame/VisualViewport.h"
#include "core/frame/WebFrameWidgetImpl.h"
#include "core/fullscreen/Fullscreen.h" #include "core/fullscreen/Fullscreen.h"
#include "core/html/HTMLInputElement.h" #include "core/html/HTMLInputElement.h"
#include "core/html/forms/ColorChooser.h" #include "core/html/forms/ColorChooser.h"
...@@ -109,7 +110,6 @@ ...@@ -109,7 +110,6 @@
#include "public/web/WebUserGestureToken.h" #include "public/web/WebUserGestureToken.h"
#include "public/web/WebViewClient.h" #include "public/web/WebViewClient.h"
#include "public/web/WebWindowFeatures.h" #include "public/web/WebWindowFeatures.h"
#include "web/WebFrameWidgetImpl.h"
#include "web/WebLocalFrameImpl.h" #include "web/WebLocalFrameImpl.h"
namespace blink { namespace blink {
......
...@@ -141,6 +141,7 @@ ...@@ -141,6 +141,7 @@
#include "core/frame/SuspendableScriptExecutor.h" #include "core/frame/SuspendableScriptExecutor.h"
#include "core/frame/UseCounter.h" #include "core/frame/UseCounter.h"
#include "core/frame/VisualViewport.h" #include "core/frame/VisualViewport.h"
#include "core/frame/WebFrameWidgetImpl.h"
#include "core/html/HTMLAnchorElement.h" #include "core/html/HTMLAnchorElement.h"
#include "core/html/HTMLCollection.h" #include "core/html/HTMLCollection.h"
#include "core/html/HTMLFormElement.h" #include "core/html/HTMLFormElement.h"
...@@ -233,7 +234,6 @@ ...@@ -233,7 +234,6 @@
#include "public/web/WebSerializedScriptValue.h" #include "public/web/WebSerializedScriptValue.h"
#include "public/web/WebTreeScopeType.h" #include "public/web/WebTreeScopeType.h"
#include "skia/ext/platform_canvas.h" #include "skia/ext/platform_canvas.h"
#include "web/WebFrameWidgetImpl.h"
namespace blink { namespace blink {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment