Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(441)

Side by Side Diff: ui/views/widget/widget_delegate.cc

Issue 933893003: Use standard icon/title in global error bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« ui/views/widget/widget_delegate.h ('K') | « ui/views/widget/widget_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698