Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Window into FlutterWindow #45542

Merged
merged 14 commits into from
Sep 11, 2023
2 changes: 0 additions & 2 deletions shell/platform/windows/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ source_set("flutter_windows_source") {
"text_input_manager.h",
"text_input_plugin.cc",
"text_input_plugin.h",
"window.cc",
"window.h",
"window_binding_handler.h",
"window_binding_handler_delegate.h",
"window_proc_delegate_manager.cc",
Expand Down
4 changes: 2 additions & 2 deletions shell/platform/windows/direct_manipulation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <algorithm>

#include "flutter/shell/platform/windows/direct_manipulation.h"
#include "flutter/shell/platform/windows/window.h"
#include "flutter/shell/platform/windows/flutter_window.h"
#include "flutter/shell/platform/windows/window_binding_handler_delegate.h"

#define RETURN_IF_FAILED(operation) \
Expand Down Expand Up @@ -172,7 +172,7 @@ ULONG STDMETHODCALLTYPE DirectManipulationEventHandler::Release() {
return 0;
}

DirectManipulationOwner::DirectManipulationOwner(Window* window)
DirectManipulationOwner::DirectManipulationOwner(FlutterWindow* window)
: window_(window) {}

int DirectManipulationOwner::Init(unsigned int width, unsigned int height) {
Expand Down
6 changes: 3 additions & 3 deletions shell/platform/windows/direct_manipulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace flutter {

class Window;
class FlutterWindow;
class WindowBindingHandlerDelegate;

class DirectManipulationEventHandler;
Expand All @@ -21,7 +21,7 @@ class DirectManipulationEventHandler;
// DirectManipulation and WindowBindingHandlerDelegate.
class DirectManipulationOwner {
public:
explicit DirectManipulationOwner(Window* window);
explicit DirectManipulationOwner(FlutterWindow* window);
virtual ~DirectManipulationOwner() = default;
// Initialize a DirectManipulation viewport with specified width and height.
// These should match the width and height of the application window.
Expand All @@ -47,7 +47,7 @@ class DirectManipulationOwner {

private:
// The window gesture input is occuring on.
Window* window_;
FlutterWindow* window_;
// Cookie needed to register child event handler with viewport.
DWORD viewportHandlerCookie_;
// Object needed for operation of the DirectManipulation API.
Expand Down