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

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

Issue 8227003: Views Bubble API adjustments and cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add close_on_esc setting and fade-in functionality. Created 9 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « views/widget/widget_delegate.h ('k') | views/window/client_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "views/widget/widget_delegate.h" 5 #include "views/widget/widget_delegate.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "views/view.h" 8 #include "views/view.h"
9 #include "views/views_delegate.h" 9 #include "views/views_delegate.h"
10 #include "views/widget/widget.h" 10 #include "views/widget/widget.h"
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 View* WidgetDelegate::GetInitiallyFocusedView() { 31 View* WidgetDelegate::GetInitiallyFocusedView() {
32 return NULL; 32 return NULL;
33 } 33 }
34 34
35 DialogDelegate* WidgetDelegate::AsDialogDelegate() { 35 DialogDelegate* WidgetDelegate::AsDialogDelegate() {
36 return NULL; 36 return NULL;
37 } 37 }
38 38
39 BubbleDelegate* WidgetDelegate::AsBubbleDelegate() {
40 return NULL;
41 }
42
43 bool WidgetDelegate::CanResize() const { 39 bool WidgetDelegate::CanResize() const {
44 return false; 40 return false;
45 } 41 }
46 42
47 bool WidgetDelegate::CanMaximize() const { 43 bool WidgetDelegate::CanMaximize() const {
48 return false; 44 return false;
49 } 45 }
50 46
51 bool WidgetDelegate::CanActivate() const { 47 bool WidgetDelegate::CanActivate() const {
52 return true; 48 return true;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 152
157 Widget* WidgetDelegateView::GetWidget() { 153 Widget* WidgetDelegateView::GetWidget() {
158 return View::GetWidget(); 154 return View::GetWidget();
159 } 155 }
160 156
161 const Widget* WidgetDelegateView::GetWidget() const { 157 const Widget* WidgetDelegateView::GetWidget() const {
162 return View::GetWidget(); 158 return View::GetWidget();
163 } 159 }
164 160
165 } // namespace views 161 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/widget_delegate.h ('k') | views/window/client_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698