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