OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_STACK_VIEW_CLOSE_BUTTON_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_STACK_VIEW_CLOSE_BUTTON_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 // A button class for the close tab button. Partially implements |
| 11 // UIAccessibilityFocus protocol to enable proper VoiceOver scrolling behavior. |
| 12 // On its target, has action for when it receives focus from VoiceOver. |
| 13 @interface CloseButton : UIButton |
| 14 |
| 15 - (void)addAccessibilityElementFocusedTarget:(id)accessibilityTarget |
| 16 action:(SEL)accessibilityAction; |
| 17 |
| 18 @end |
| 19 |
| 20 #endif // IOS_CHROME_BROWSER_UI_STACK_VIEW_CLOSE_BUTTON_H_ |
OLD | NEW |