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

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

Issue 1759453002: Convert location bar bubble delegates to bubble dialog delegates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ImmersiveFullscreenController Created 4 years, 9 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 14 matching lines...) Expand all
25 void WidgetDelegate::OnWidgetMove() { 25 void WidgetDelegate::OnWidgetMove() {
26 } 26 }
27 27
28 void WidgetDelegate::OnDisplayChanged() { 28 void WidgetDelegate::OnDisplayChanged() {
29 } 29 }
30 30
31 void WidgetDelegate::OnWorkAreaChanged() { 31 void WidgetDelegate::OnWorkAreaChanged() {
32 } 32 }
33 33
34 View* WidgetDelegate::GetInitiallyFocusedView() { 34 View* WidgetDelegate::GetInitiallyFocusedView() {
35 return NULL; 35 return nullptr;
36 } 36 }
37 37
38 BubbleDelegateView* WidgetDelegate::AsBubbleDelegate() { 38 BubbleDelegateView* WidgetDelegate::AsBubbleDelegate() {
39 return NULL; 39 return nullptr;
40 }
41
42 BubbleDialogDelegateView* WidgetDelegate::AsBubbleDialogDelegate() {
43 return nullptr;
40 } 44 }
41 45
42 DialogDelegate* WidgetDelegate::AsDialogDelegate() { 46 DialogDelegate* WidgetDelegate::AsDialogDelegate() {
43 return NULL; 47 return nullptr;
44 } 48 }
45 49
46 bool WidgetDelegate::CanResize() const { 50 bool WidgetDelegate::CanResize() const {
47 return false; 51 return false;
48 } 52 }
49 53
50 bool WidgetDelegate::CanMaximize() const { 54 bool WidgetDelegate::CanMaximize() const {
51 return false; 55 return false;
52 } 56 }
53 57
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 207
204 const Widget* WidgetDelegateView::GetWidget() const { 208 const Widget* WidgetDelegateView::GetWidget() const {
205 return View::GetWidget(); 209 return View::GetWidget();
206 } 210 }
207 211
208 const char* WidgetDelegateView::GetClassName() const { 212 const char* WidgetDelegateView::GetClassName() const {
209 return kViewClassName; 213 return kViewClassName;
210 } 214 }
211 215
212 } // namespace views 216 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698