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 aura::Window* child, |
| 155 const gfx::Point& event_location, |
| 156 ui::EventType event_type) { |
| 157 return true; |
| 158 } |
| 159 |
153 //////////////////////////////////////////////////////////////////////////////// | 160 //////////////////////////////////////////////////////////////////////////////// |
154 // WidgetDelegateView: | 161 // WidgetDelegateView: |
155 | 162 |
156 WidgetDelegateView::WidgetDelegateView() { | 163 WidgetDelegateView::WidgetDelegateView() { |
157 } | 164 } |
158 | 165 |
159 WidgetDelegateView::~WidgetDelegateView() { | 166 WidgetDelegateView::~WidgetDelegateView() { |
160 } | 167 } |
161 | 168 |
162 Widget* WidgetDelegateView::GetWidget() { | 169 Widget* WidgetDelegateView::GetWidget() { |
163 return View::GetWidget(); | 170 return View::GetWidget(); |
164 } | 171 } |
165 | 172 |
166 const Widget* WidgetDelegateView::GetWidget() const { | 173 const Widget* WidgetDelegateView::GetWidget() const { |
167 return View::GetWidget(); | 174 return View::GetWidget(); |
168 } | 175 } |
169 | 176 |
170 } // namespace views | 177 } // namespace views |
OLD | NEW |