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

Side by Side Diff: ui/views/view.h

Issue 1894383002: MacViews: Implement Full Keyboard Access. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SetFocusBehavior
Patch Set: Rebased. Created 4 years, 8 months 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_VIEW_H_ 5 #ifndef UI_VIEWS_VIEW_H_
6 #define UI_VIEWS_VIEW_H_ 6 #define UI_VIEWS_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 // Input --------------------------------------------------------------------- 1142 // Input ---------------------------------------------------------------------
1143 1143
1144 virtual DragInfo* GetDragInfo(); 1144 virtual DragInfo* GetDragInfo();
1145 1145
1146 // Focus --------------------------------------------------------------------- 1146 // Focus ---------------------------------------------------------------------
1147 1147
1148 // Returns last value passed to SetFocusable(). Use IsFocusable() to determine 1148 // Returns last value passed to SetFocusable(). Use IsFocusable() to determine
1149 // if a view can take focus right now. 1149 // if a view can take focus right now.
1150 bool focusable() const { return focusable_; } 1150 bool focusable() const { return focusable_; }
1151 1151
1152 // Returns last value passed to SetAccessibilityFocusable(). Use
tapted 2016/04/20 06:05:58 (ideally this is unnecessary with something like `
karandeepb 2016/05/03 02:54:13 Removed this.
1153 // IsAccessibilityFocusable() to determine if a view can take focus right now
1154 // in accessibility mode.
1155 bool accessibility_focusable() const { return accessibility_focusable_; }
1156
1152 // Override to be notified when focus has changed either to or from this View. 1157 // Override to be notified when focus has changed either to or from this View.
1153 virtual void OnFocus(); 1158 virtual void OnFocus();
1154 virtual void OnBlur(); 1159 virtual void OnBlur();
1155 1160
1156 // Handle view focus/blur events for this view. 1161 // Handle view focus/blur events for this view.
1157 void Focus(); 1162 void Focus();
1158 void Blur(); 1163 void Blur();
1159 1164
1160 // System events ------------------------------------------------------------- 1165 // System events -------------------------------------------------------------
1161 1166
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 // Belongs to this view, but it's reference-counted on some platforms 1592 // Belongs to this view, but it's reference-counted on some platforms
1588 // so we can't use a scoped_ptr. It's dereferenced in the destructor. 1593 // so we can't use a scoped_ptr. It's dereferenced in the destructor.
1589 NativeViewAccessibility* native_view_accessibility_; 1594 NativeViewAccessibility* native_view_accessibility_;
1590 1595
1591 DISALLOW_COPY_AND_ASSIGN(View); 1596 DISALLOW_COPY_AND_ASSIGN(View);
1592 }; 1597 };
1593 1598
1594 } // namespace views 1599 } // namespace views
1595 1600
1596 #endif // UI_VIEWS_VIEW_H_ 1601 #endif // UI_VIEWS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698