OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |