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

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

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/examples/bubble_example.cc ('k') | views/widget/widget_delegate.cc » ('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 #ifndef VIEWS_WIDGET_WIDGET_DELEGATE_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_DELEGATE_H_
6 #define VIEWS_WIDGET_WIDGET_DELEGATE_H_ 6 #define VIEWS_WIDGET_WIDGET_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // menu bars, etc.) changes in size. 43 // menu bars, etc.) changes in size.
44 virtual void OnWorkAreaChanged(); 44 virtual void OnWorkAreaChanged();
45 45
46 // Returns the view that should have the focus when the widget is shown. If 46 // Returns the view that should have the focus when the widget is shown. If
47 // NULL no view is focused. 47 // NULL no view is focused.
48 virtual View* GetInitiallyFocusedView(); 48 virtual View* GetInitiallyFocusedView();
49 49
50 // Moved from WindowDelegate: ------------------------------------------------ 50 // Moved from WindowDelegate: ------------------------------------------------
51 // TODO(beng): sort 51 // TODO(beng): sort
52 52
53 virtual BubbleDelegate* AsBubbleDelegate();
54 virtual DialogDelegate* AsDialogDelegate(); 53 virtual DialogDelegate* AsDialogDelegate();
55 54
56 // Returns true if the window can ever be resized. 55 // Returns true if the window can ever be resized.
57 virtual bool CanResize() const; 56 virtual bool CanResize() const;
58 57
59 // Returns true if the window can ever be maximized. 58 // Returns true if the window can ever be maximized.
60 virtual bool CanMaximize() const; 59 virtual bool CanMaximize() const;
61 60
62 // Returns true if the window can be activated. 61 // Returns true if the window can be activated.
63 virtual bool CanActivate() const; 62 virtual bool CanActivate() const;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 virtual Widget* GetWidget() OVERRIDE; 171 virtual Widget* GetWidget() OVERRIDE;
173 virtual const Widget* GetWidget() const OVERRIDE; 172 virtual const Widget* GetWidget() const OVERRIDE;
174 173
175 private: 174 private:
176 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); 175 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView);
177 }; 176 };
178 177
179 } // namespace views 178 } // namespace views
180 179
181 #endif // VIEWS_WIDGET_WIDGET_DELEGATE_H_ 180 #endif // VIEWS_WIDGET_WIDGET_DELEGATE_H_
OLDNEW
« no previous file with comments | « views/examples/bubble_example.cc ('k') | views/widget/widget_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698