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 #include "ui/views/widget/widget_delegate.h" | 5 #include "ui/views/widget/widget_delegate.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 } | 143 } |
144 | 144 |
145 bool WidgetDelegate::HasHitTestMask() const { | 145 bool WidgetDelegate::HasHitTestMask() const { |
146 return false; | 146 return false; |
147 } | 147 } |
148 | 148 |
149 void WidgetDelegate::GetHitTestMask(gfx::Path* mask) const { | 149 void WidgetDelegate::GetHitTestMask(gfx::Path* mask) const { |
150 DCHECK(mask); | 150 DCHECK(mask); |
151 } | 151 } |
152 | 152 |
| 153 bool WidgetDelegate::ShouldDescendIntoChildForEventHandling( |
| 154 gfx::NativeView child, |
| 155 const gfx::Point& location) { |
| 156 return true; |
| 157 } |
| 158 |
153 //////////////////////////////////////////////////////////////////////////////// | 159 //////////////////////////////////////////////////////////////////////////////// |
154 // WidgetDelegateView: | 160 // WidgetDelegateView: |
155 | 161 |
156 WidgetDelegateView::WidgetDelegateView() { | 162 WidgetDelegateView::WidgetDelegateView() { |
157 } | 163 } |
158 | 164 |
159 WidgetDelegateView::~WidgetDelegateView() { | 165 WidgetDelegateView::~WidgetDelegateView() { |
160 } | 166 } |
161 | 167 |
162 Widget* WidgetDelegateView::GetWidget() { | 168 Widget* WidgetDelegateView::GetWidget() { |
163 return View::GetWidget(); | 169 return View::GetWidget(); |
164 } | 170 } |
165 | 171 |
166 const Widget* WidgetDelegateView::GetWidget() const { | 172 const Widget* WidgetDelegateView::GetWidget() const { |
167 return View::GetWidget(); | 173 return View::GetWidget(); |
168 } | 174 } |
169 | 175 |
170 } // namespace views | 176 } // namespace views |
OLD | NEW |