Commit 9ebbc50f authored by Robert Sesek's avatar Robert Sesek Committed by Commit Bot

Remove unused -[BrowserCrApplication isCyclingWindows]

Change-Id: I6dcd067fec2a7b5ac8f730bba5ca6f83fdd9035d
Reviewed-on: https://chromium-review.googlesource.com/c/1298304
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Reviewed-by: default avatarTrent Apted <tapted@chromium.org>
Cr-Commit-Position: refs/heads/master@{#602542}
parent 622ec150
......@@ -17,17 +17,12 @@
CrAppControlProtocol> {
@private
BOOL handlingSendEvent_;
BOOL cyclingWindows_;
}
// Our implementation of |-terminate:| only attempts to terminate the
// application, i.e., begins a process which may lead to termination. This
// method cancels that process.
- (void)cancelTerminate:(id)sender;
// Keep track of whether windows are being cycled for use in determining whether
// a Panel window can become the key window.
- (BOOL)isCyclingWindows;
@end
#endif // __OBJC__
......
......@@ -4,7 +4,6 @@
#import "chrome/browser/chrome_browser_application_mac.h"
#include "base/auto_reset.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "base/mac/call_with_eh_frame.h"
......@@ -101,12 +100,6 @@ std::string DescriptionForNSEvent(NSEvent* event) {
} // namespace
// Method exposed for the purposes of overriding.
// Used to determine when a Panel window can become the key window.
@interface NSApplication (PanelsCanBecomeKey)
- (void)_cycleWindowsReversed:(BOOL)arg1;
@end
@interface BrowserCrApplication ()<NativeEventProcessor> {
base::ObserverList<content::NativeEventProcessorObserver>::Unchecked
observers_;
......@@ -134,14 +127,6 @@ std::string DescriptionForNSEvent(NSEvent* event) {
}
}
// Sanity check to alert if overridden methods are not supported.
DCHECK([NSApplication
instancesRespondToSelector:@selector(_cycleWindowsReversed:)]);
DCHECK([NSApplication
instancesRespondToSelector:@selector(_removeWindow:)]);
DCHECK([NSApplication
instancesRespondToSelector:@selector(_setKeyWindow:)]);
return self;
}
......@@ -368,15 +353,6 @@ std::string DescriptionForNSEvent(NSEvent* event) {
return [super accessibilitySetValue:value forAttribute:attribute];
}
- (void)_cycleWindowsReversed:(BOOL)arg1 {
base::AutoReset<BOOL> pin(&cyclingWindows_, YES);
[super _cycleWindowsReversed:arg1];
}
- (BOOL)isCyclingWindows {
return cyclingWindows_;
}
- (void)addNativeEventProcessorObserver:
(content::NativeEventProcessorObserver*)observer {
observers_.AddObserver(observer);
......
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