| 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 "third_party/skia/include/core/SkBitmap.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" |
| 11 #include "ui/views/views_delegate.h" | 11 #include "ui/views/views_delegate.h" |
| 12 #include "ui/views/widget/widget.h" | 12 #include "ui/views/widget/widget.h" |
| 13 #include "ui/views/window/client_view.h" | 13 #include "ui/views/window/client_view.h" |
| 14 | 14 |
| 15 namespace views { | 15 namespace views { |
| 16 | 16 |
| 17 //////////////////////////////////////////////////////////////////////////////// | 17 //////////////////////////////////////////////////////////////////////////////// |
| 18 // WidgetDelegate: | 18 // WidgetDelegate: |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 } | 70 } |
| 71 | 71 |
| 72 string16 WidgetDelegate::GetWindowTitle() const { | 72 string16 WidgetDelegate::GetWindowTitle() const { |
| 73 return string16(); | 73 return string16(); |
| 74 } | 74 } |
| 75 | 75 |
| 76 bool WidgetDelegate::ShouldShowWindowTitle() const { | 76 bool WidgetDelegate::ShouldShowWindowTitle() const { |
| 77 return true; | 77 return true; |
| 78 } | 78 } |
| 79 | 79 |
| 80 SkBitmap WidgetDelegate::GetWindowAppIcon() { | 80 gfx::ImageSkia WidgetDelegate::GetWindowAppIcon() { |
| 81 // Use the window icon as app icon by default. | 81 // Use the window icon as app icon by default. |
| 82 return GetWindowIcon(); | 82 return GetWindowIcon(); |
| 83 } | 83 } |
| 84 | 84 |
| 85 // Returns the icon to be displayed in the window. | 85 // Returns the icon to be displayed in the window. |
| 86 SkBitmap WidgetDelegate::GetWindowIcon() { | 86 gfx::ImageSkia WidgetDelegate::GetWindowIcon() { |
| 87 return SkBitmap(); | 87 return gfx::ImageSkia(); |
| 88 } | 88 } |
| 89 | 89 |
| 90 bool WidgetDelegate::ShouldShowWindowIcon() const { | 90 bool WidgetDelegate::ShouldShowWindowIcon() const { |
| 91 return false; | 91 return false; |
| 92 } | 92 } |
| 93 | 93 |
| 94 bool WidgetDelegate::ExecuteWindowsCommand(int command_id) { | 94 bool WidgetDelegate::ExecuteWindowsCommand(int command_id) { |
| 95 return false; | 95 return false; |
| 96 } | 96 } |
| 97 | 97 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 Widget* WidgetDelegateView::GetWidget() { | 154 Widget* WidgetDelegateView::GetWidget() { |
| 155 return View::GetWidget(); | 155 return View::GetWidget(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 const Widget* WidgetDelegateView::GetWidget() const { | 158 const Widget* WidgetDelegateView::GetWidget() const { |
| 159 return View::GetWidget(); | 159 return View::GetWidget(); |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace views | 162 } // namespace views |
| OLD | NEW |