Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1036)

Side by Side Diff: ios/chrome/browser/ui/stack_view/close_button.mm

Issue 2587023002: Upstream Chrome on iOS source code [8/11]. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 #import "ios/chrome/browser/ui/stack_view/close_button.h"
6
7 #include "base/logging.h"
8
9 @implementation CloseButton {
10 id _accessibilityTarget; // weak
11 SEL _accessibilityAction;
12 }
13
14 - (void)addAccessibilityElementFocusedTarget:(id)accessibilityTarget
15 action:(SEL)accessibilityAction {
16 DCHECK(!accessibilityTarget ||
17 [accessibilityTarget respondsToSelector:accessibilityAction]);
18 _accessibilityTarget = accessibilityTarget;
19 _accessibilityAction = accessibilityAction;
20 }
21
22 - (void)accessibilityElementDidBecomeFocused {
23 [_accessibilityTarget performSelector:_accessibilityAction withObject:self];
24 }
25
26 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/stack_view/close_button.h ('k') | ios/chrome/browser/ui/stack_view/page_animation_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698