-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move terminateApplication to an internal header
- Loading branch information
1 parent
5ff0415
commit 7cf7b83
Showing
4 changed files
with
29 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
shell/platform/darwin/macos/framework/Source/FlutterApplication_Internal.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters