| OLD | NEW |
| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 return false; | 73 return false; |
| 74 } | 74 } |
| 75 | 75 |
| 76 // Returns the text to be displayed in the window title. | 76 // Returns the text to be displayed in the window title. |
| 77 virtual std::wstring GetWindowTitle() const { | 77 virtual std::wstring GetWindowTitle() const { |
| 78 return L""; | 78 return L""; |
| 79 } | 79 } |
| 80 | 80 |
| 81 // Returns the view that should have the focus when the dialog is opened. If | 81 // Returns the view that should have the focus when the dialog is opened. If |
| 82 // NULL no view is focused. | 82 // NULL no view is focused. |
| 83 virtual View* GetInitiallyFocusedView() const { return NULL; } | 83 virtual View* GetInitiallyFocusedView() { return NULL; } |
| 84 | 84 |
| 85 // Returns true if the window should show a title in the title bar. | 85 // Returns true if the window should show a title in the title bar. |
| 86 virtual bool ShouldShowWindowTitle() const { | 86 virtual bool ShouldShowWindowTitle() const { |
| 87 return true; | 87 return true; |
| 88 } | 88 } |
| 89 | 89 |
| 90 // Returns the icon to be displayed in the window. | 90 // Returns the icon to be displayed in the window. |
| 91 virtual SkBitmap GetWindowIcon(); | 91 virtual SkBitmap GetWindowIcon(); |
| 92 | 92 |
| 93 // Returns true if a window icon should be shown. | 93 // Returns true if a window icon should be shown. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |