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

Side by Side Diff: ui/views/widget/widget_delegate.h

Issue 23475012: Fixes focus traversal bug (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: OVERRIDE Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/widget.cc ('k') | ui/views/widget/widget_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_WIDGET_WIDGET_DELEGATE_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
6 #define UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // the default window manager. In some cases, like panel, we would like to 152 // the default window manager. In some cases, like panel, we would like to
153 // manage the positions by ourselves. 153 // manage the positions by ourselves.
154 virtual bool WillProcessWorkAreaChange() const; 154 virtual bool WillProcessWorkAreaChange() const;
155 155
156 // Returns true if window has a hit-test mask. 156 // Returns true if window has a hit-test mask.
157 virtual bool WidgetHasHitTestMask() const; 157 virtual bool WidgetHasHitTestMask() const;
158 158
159 // Provides the hit-test mask if HasHitTestMask above returns true. 159 // Provides the hit-test mask if HasHitTestMask above returns true.
160 virtual void GetWidgetHitTestMask(gfx::Path* mask) const; 160 virtual void GetWidgetHitTestMask(gfx::Path* mask) const;
161 161
162 // Returns true if focus should advance to the top level widget when
163 // tab/shift-tab is hit and on the last/first focusable view. Default returns
164 // false, which means tab/shift-tab never advance to the top level Widget.
165 virtual bool ShouldAdvanceFocusToTopLevelWidget() const;
166
162 // Returns true if event handling should descend into |child|. 167 // Returns true if event handling should descend into |child|.
163 // |location| is in terms of the Window. 168 // |location| is in terms of the Window.
164 virtual bool ShouldDescendIntoChildForEventHandling( 169 virtual bool ShouldDescendIntoChildForEventHandling(
165 gfx::NativeView child, 170 gfx::NativeView child,
166 const gfx::Point& location); 171 const gfx::Point& location);
167 172
168 // Populates |panes| with accessible panes in this window that can 173 // Populates |panes| with accessible panes in this window that can
169 // be cycled through with keyboard focus. 174 // be cycled through with keyboard focus.
170 virtual void GetAccessiblePanes(std::vector<View*>* panes) {} 175 virtual void GetAccessiblePanes(std::vector<View*>* panes) {}
171 176
(...skipping 20 matching lines...) Expand all
192 virtual Widget* GetWidget() OVERRIDE; 197 virtual Widget* GetWidget() OVERRIDE;
193 virtual const Widget* GetWidget() const OVERRIDE; 198 virtual const Widget* GetWidget() const OVERRIDE;
194 199
195 private: 200 private:
196 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); 201 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView);
197 }; 202 };
198 203
199 } // namespace views 204 } // namespace views
200 205
201 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ 206 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/widget.cc ('k') | ui/views/widget/widget_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698