Skip to content

Commit

Permalink
Move terminateApplication to an internal header
Browse files Browse the repository at this point in the history
  • Loading branch information
gspencergoog committed Mar 1, 2023
1 parent 5ff0415 commit 7cf7b83
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 11 deletions.
11 changes: 0 additions & 11 deletions shell/platform/darwin/macos/framework/Headers/FlutterApplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,6 @@
* necessary from FlutterApplication.mm.
*/
@interface FlutterApplication : NSApplication

/**
* FlutterApplication's implementation of |terminate| doesn't terminate the
* application: that is left up to the engine, which will call this function if
* it decides that termination request is granted, which will start the regular
* Cocoa flow for terminating the application, calling
* |applicationShouldTerminate|, etc.
*
* @param(sender) The id of the object requesting the termination, or nil.
*/
- (void)terminateApplication:(id)sender;
@end

#endif // FLUTTER_FLUTTERAPPLICATION_H_
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// found in the LICENSE file.

#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterApplication.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterApplication_Internal.h"

#include "flutter/shell/platform/embedder/embedder.h"
#import "shell/platform/darwin/macos/framework/Headers/FlutterAppDelegate.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2013 The Flutter 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 FLUTTER_FLUTTERAPPLICATION_INTERNAL_H_
#define FLUTTER_FLUTTERAPPLICATION_INTERNAL_H_

#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterApplication.h"

/**
* Define |terminateApplication| for internal use.
*/
@interface FlutterApplication ()

/**
* FlutterApplication's implementation of |terminate| doesn't terminate the
* application: that is left up to the engine, which will call this function if
* it decides that termination request is granted, which will start the regular
* Cocoa flow for terminating the application, calling
* |applicationShouldTerminate|, etc.
*
* @param(sender) The id of the object requesting the termination, or nil.
*/
- (void)terminateApplication:(id)sender;
@end

#endif // FLUTTER_FLUTTERAPPLICATION_INTERNAL_H_
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterAppDelegate.h"
#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterApplication.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterAppDelegate_Internal.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterApplication_Internal.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterCompositor.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterDartProject_Internal.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterMenuPlugin.h"
Expand Down

0 comments on commit 7cf7b83

Please sign in to comment.