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

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

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_delegate.h ('k') | no next file » | 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 #include "ui/views/widget/widget_delegate.h" 5 #include "ui/views/widget/widget_delegate.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "ui/gfx/image/image_skia.h" 8 #include "ui/gfx/image/image_skia.h"
9 #include "ui/views/bubble/bubble_delegate.h" 9 #include "ui/views/bubble/bubble_delegate.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } 155 }
156 156
157 bool WidgetDelegate::WidgetHasHitTestMask() const { 157 bool WidgetDelegate::WidgetHasHitTestMask() const {
158 return false; 158 return false;
159 } 159 }
160 160
161 void WidgetDelegate::GetWidgetHitTestMask(gfx::Path* mask) const { 161 void WidgetDelegate::GetWidgetHitTestMask(gfx::Path* mask) const {
162 DCHECK(mask); 162 DCHECK(mask);
163 } 163 }
164 164
165 bool WidgetDelegate::ShouldAdvanceFocusToTopLevelWidget() const {
166 return false;
167 }
168
165 bool WidgetDelegate::ShouldDescendIntoChildForEventHandling( 169 bool WidgetDelegate::ShouldDescendIntoChildForEventHandling(
166 gfx::NativeView child, 170 gfx::NativeView child,
167 const gfx::Point& location) { 171 const gfx::Point& location) {
168 return true; 172 return true;
169 } 173 }
170 174
171 //////////////////////////////////////////////////////////////////////////////// 175 ////////////////////////////////////////////////////////////////////////////////
172 // WidgetDelegateView: 176 // WidgetDelegateView:
173 177
174 WidgetDelegateView::WidgetDelegateView() { 178 WidgetDelegateView::WidgetDelegateView() {
(...skipping 10 matching lines...) Expand all
185 189
186 Widget* WidgetDelegateView::GetWidget() { 190 Widget* WidgetDelegateView::GetWidget() {
187 return View::GetWidget(); 191 return View::GetWidget();
188 } 192 }
189 193
190 const Widget* WidgetDelegateView::GetWidget() const { 194 const Widget* WidgetDelegateView::GetWidget() const {
191 return View::GetWidget(); 195 return View::GetWidget();
192 } 196 }
193 197
194 } // namespace views 198 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698