Skip to content

Commit

Permalink
Add missing virtual methods in PlatformView (flutter#3867)
Browse files Browse the repository at this point in the history
  • Loading branch information
B3rn475 authored and rmacnak-google committed Jul 12, 2017
1 parent 8ba522e commit 354d90a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions shell/common/platform_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class PlatformView : public std::enable_shared_from_this<PlatformView> {

virtual ~PlatformView();

virtual void Attach() = 0;

void DispatchPlatformMessage(ftl::RefPtr<blink::PlatformMessage> message);
void DispatchSemanticsAction(int32_t id, blink::SemanticsAction action);
void SetSemanticsEnabled(bool enabled);
Expand Down
2 changes: 1 addition & 1 deletion shell/platform/android/platform_view_android.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PlatformViewAndroid : public PlatformView {

~PlatformViewAndroid() override;

void Attach();
virtual void Attach() override;

void Detach();

Expand Down
2 changes: 1 addition & 1 deletion shell/platform/darwin/desktop/platform_view_mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PlatformViewMac : public PlatformView, public GPUSurfaceGLDelegate {

~PlatformViewMac() override;

void Attach();
virtual void Attach() override;

void SetupAndLoadDart();

Expand Down
2 changes: 1 addition & 1 deletion shell/platform/darwin/ios/platform_view_ios.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PlatformViewIOS : public PlatformView {

~PlatformViewIOS() override;

void Attach();
virtual void Attach() override;

void NotifyCreated();

Expand Down
2 changes: 1 addition & 1 deletion shell/testing/platform_view_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class PlatformViewTest : public PlatformView {

~PlatformViewTest();

void Attach();
virtual void Attach() override;

bool ResourceContextMakeCurrent() override;

Expand Down

0 comments on commit 354d90a

Please sign in to comment.