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

Side by Side Diff: chrome/views/window_delegate.h

Issue 27247: Non-functional cleanup:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/views/window.cc ('k') | no next file » | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_WINDOW_DELEGATE_H_ 5 #ifndef CHROME_VIEWS_WINDOW_DELEGATE_H_
6 #define CHROME_VIEWS_WINDOW_DELEGATE_H_ 6 #define CHROME_VIEWS_WINDOW_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 25 matching lines...) Expand all
36 // it should be displayed and notify the delegate object of certain events. 36 // it should be displayed and notify the delegate object of certain events.
37 // 37 //
38 /////////////////////////////////////////////////////////////////////////////// 38 ///////////////////////////////////////////////////////////////////////////////
39 class WindowDelegate { 39 class WindowDelegate {
40 public: 40 public:
41 WindowDelegate(); 41 WindowDelegate();
42 virtual ~WindowDelegate(); 42 virtual ~WindowDelegate();
43 43
44 virtual DialogDelegate* AsDialogDelegate() { return NULL; } 44 virtual DialogDelegate* AsDialogDelegate() { return NULL; }
45 45
46 // Returns true if the window can be resized. 46 // Returns true if the window can ever be resized.
47 virtual bool CanResize() const { 47 virtual bool CanResize() const {
48 return false; 48 return false;
49 } 49 }
50 50
51 // Returns true if the window can be maximized. 51 // Returns true if the window can ever be maximized.
52 virtual bool CanMaximize() const { 52 virtual bool CanMaximize() const {
53 return false; 53 return false;
54 } 54 }
55 55
56 // Returns true if the window should be placed on top of all other windows on 56 // Returns true if the window should be placed on top of all other windows on
57 // the system, even when it is not active. If HasAlwaysOnTopMenu() returns 57 // the system, even when it is not active. If HasAlwaysOnTopMenu() returns
58 // true, then this method is only used the first time the window is opened, it 58 // true, then this method is only used the first time the window is opened, it
59 // is stored in the preferences for next runs. 59 // is stored in the preferences for next runs.
60 virtual bool IsAlwaysOnTop() const { 60 virtual bool IsAlwaysOnTop() const {
61 return false; 61 return false;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // people using this helper to not have to call a ctor on this object. 149 // people using this helper to not have to call a ctor on this object.
150 // Instead we just release the owning ref this pointer has when we are 150 // Instead we just release the owning ref this pointer has when we are
151 // destroyed. 151 // destroyed.
152 scoped_ptr<Window> window_; 152 scoped_ptr<Window> window_;
153 }; 153 };
154 154
155 } // namespace views 155 } // namespace views
156 156
157 #endif // CHROME_VIEWS_WINDOW_DELEGATE_H_ 157 #endif // CHROME_VIEWS_WINDOW_DELEGATE_H_
158 158
OLDNEW
« no previous file with comments | « chrome/views/window.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698