| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 } | 72 } |
| 73 | 73 |
| 74 base::string16 WidgetDelegate::GetWindowTitle() const { | 74 base::string16 WidgetDelegate::GetWindowTitle() const { |
| 75 return base::string16(); | 75 return base::string16(); |
| 76 } | 76 } |
| 77 | 77 |
| 78 bool WidgetDelegate::ShouldShowWindowTitle() const { | 78 bool WidgetDelegate::ShouldShowWindowTitle() const { |
| 79 return true; | 79 return true; |
| 80 } | 80 } |
| 81 | 81 |
| 82 gfx::ImageSkia WidgetDelegate::GetWindowTitleIcon() { |
| 83 return gfx::ImageSkia(); |
| 84 } |
| 85 |
| 86 bool WidgetDelegate::ShouldShowWindowTitleIcon() const { |
| 87 return false; |
| 88 } |
| 89 |
| 82 bool WidgetDelegate::ShouldShowCloseButton() const { | 90 bool WidgetDelegate::ShouldShowCloseButton() const { |
| 83 return true; | 91 return true; |
| 84 } | 92 } |
| 85 | 93 |
| 86 bool WidgetDelegate::ShouldHandleSystemCommands() const { | 94 bool WidgetDelegate::ShouldHandleSystemCommands() const { |
| 87 const Widget* widget = GetWidget(); | 95 const Widget* widget = GetWidget(); |
| 88 if (!widget) | 96 if (!widget) |
| 89 return false; | 97 return false; |
| 90 | 98 |
| 91 return widget->non_client_view() != NULL; | 99 return widget->non_client_view() != NULL; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 | 211 |
| 204 const Widget* WidgetDelegateView::GetWidget() const { | 212 const Widget* WidgetDelegateView::GetWidget() const { |
| 205 return View::GetWidget(); | 213 return View::GetWidget(); |
| 206 } | 214 } |
| 207 | 215 |
| 208 const char* WidgetDelegateView::GetClassName() const { | 216 const char* WidgetDelegateView::GetClassName() const { |
| 209 return kViewClassName; | 217 return kViewClassName; |
| 210 } | 218 } |
| 211 | 219 |
| 212 } // namespace views | 220 } // namespace views |
| OLD | NEW |