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" | |
10 #include "ui/views/view.h" | 9 #include "ui/views/view.h" |
11 #include "ui/views/views_delegate.h" | 10 #include "ui/views/views_delegate.h" |
12 #include "ui/views/widget/widget.h" | 11 #include "ui/views/widget/widget.h" |
13 #include "ui/views/window/client_view.h" | 12 #include "ui/views/window/client_view.h" |
14 | 13 |
15 namespace views { | 14 namespace views { |
16 | 15 |
17 //////////////////////////////////////////////////////////////////////////////// | 16 //////////////////////////////////////////////////////////////////////////////// |
18 // WidgetDelegate: | 17 // WidgetDelegate: |
19 | 18 |
20 WidgetDelegate::WidgetDelegate() | 19 WidgetDelegate::WidgetDelegate() |
21 : default_contents_view_(NULL), | 20 : default_contents_view_(NULL), |
22 can_activate_(true) { | 21 can_activate_(true) { |
23 } | 22 } |
24 | 23 |
25 void WidgetDelegate::OnWidgetMove() { | 24 void WidgetDelegate::OnWidgetMove() { |
26 } | 25 } |
27 | 26 |
28 void WidgetDelegate::OnDisplayChanged() { | 27 void WidgetDelegate::OnDisplayChanged() { |
29 } | 28 } |
30 | 29 |
31 void WidgetDelegate::OnWorkAreaChanged() { | 30 void WidgetDelegate::OnWorkAreaChanged() { |
32 } | 31 } |
33 | 32 |
34 View* WidgetDelegate::GetInitiallyFocusedView() { | 33 View* WidgetDelegate::GetInitiallyFocusedView() { |
35 return nullptr; | 34 return nullptr; |
36 } | 35 } |
37 | 36 |
38 BubbleDelegateView* WidgetDelegate::AsBubbleDelegate() { | |
39 return nullptr; | |
40 } | |
41 | |
42 BubbleDialogDelegateView* WidgetDelegate::AsBubbleDialogDelegate() { | 37 BubbleDialogDelegateView* WidgetDelegate::AsBubbleDialogDelegate() { |
43 return nullptr; | 38 return nullptr; |
44 } | 39 } |
45 | 40 |
46 DialogDelegate* WidgetDelegate::AsDialogDelegate() { | 41 DialogDelegate* WidgetDelegate::AsDialogDelegate() { |
47 return nullptr; | 42 return nullptr; |
48 } | 43 } |
49 | 44 |
50 bool WidgetDelegate::CanResize() const { | 45 bool WidgetDelegate::CanResize() const { |
51 return false; | 46 return false; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 206 |
212 const Widget* WidgetDelegateView::GetWidget() const { | 207 const Widget* WidgetDelegateView::GetWidget() const { |
213 return View::GetWidget(); | 208 return View::GetWidget(); |
214 } | 209 } |
215 | 210 |
216 const char* WidgetDelegateView::GetClassName() const { | 211 const char* WidgetDelegateView::GetClassName() const { |
217 return kViewClassName; | 212 return kViewClassName; |
218 } | 213 } |
219 | 214 |
220 } // namespace views | 215 } // namespace views |
OLD | NEW |