summaryrefslogtreecommitdiffstats
path: root/chrome/views/window_delegate.h
diff options
context:
space:
mode:
authormaruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 12:27:03 +0000
committermaruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 12:27:03 +0000
commit1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf (patch)
treeb78be07dbada3ac0f6d2435558e4a6aaba198ffc /chrome/views/window_delegate.h
parentea15e98a9353494df754a11fb49f0e4b8c0d4789 (diff)
downloadchromium_src-1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf.zip
chromium_src-1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf.tar.gz
chromium_src-1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf.tar.bz2
Large patch set (159 files total) to cleanup the includes.
- Slightly reduce the size of the generated .lib files ~3%. - Reduce the number of implicit and explicit atl and windows includes. hooray! - Help incremental build by reducing the number of unnecessary included files. - Split some template class in two, one base class for the common code and the specialization that inherits from the base class. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@937 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/window_delegate.h')
-rw-r--r--chrome/views/window_delegate.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/chrome/views/window_delegate.h b/chrome/views/window_delegate.h
index 67990a0..1d97b1b 100644
--- a/chrome/views/window_delegate.h
+++ b/chrome/views/window_delegate.h
@@ -27,22 +27,27 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#ifndef CHROME_VIEWS_WINDOW_DELEGATE_H__
-#define CHROME_VIEWS_WINDOW_DELEGATE_H__
+#ifndef CHROME_VIEWS_WINDOW_DELEGATE_H_
+#define CHROME_VIEWS_WINDOW_DELEGATE_H_
-#include <atlbase.h>
-#include <atlapp.h>
-#include <atlmisc.h>
#include <string>
-#include "chrome/views/client_view.h"
-#include "chrome/views/window.h"
-#include "skia/include/SkBitmap.h"
+#include "base/scoped_ptr.h"
+
+class SkBitmap;
+
+// TODO(maruel): Remove once gfx::Rect is used instead.
+namespace WTL {
+class CRect;
+}
+using WTL::CRect;
namespace ChromeViews {
+class ClientView;
class DialogDelegate;
class View;
+class Window;
///////////////////////////////////////////////////////////////////////////////
//
@@ -55,9 +60,8 @@ class View;
///////////////////////////////////////////////////////////////////////////////
class WindowDelegate {
public:
- virtual ~WindowDelegate() {
- window_.release();
- }
+ WindowDelegate();
+ virtual ~WindowDelegate();
virtual DialogDelegate* AsDialogDelegate() { return NULL; }
@@ -106,9 +110,7 @@ class WindowDelegate {
}
// Returns the icon to be displayed in the window.
- virtual SkBitmap GetWindowIcon() {
- return SkBitmap();
- }
+ virtual SkBitmap GetWindowIcon();
// Returns true if a window icon should be shown.
virtual bool ShouldShowWindowIcon() const {
@@ -142,9 +144,7 @@ class WindowDelegate {
// Called by the Window to create the Client View used to host the contents
// of the window.
- virtual ClientView* CreateClientView(Window* window) {
- return new ClientView(window, GetContentsView());
- }
+ virtual ClientView* CreateClientView(Window* window);
// An accessor to the Window this delegate is bound to.
Window* window() const { return window_.get(); }
@@ -161,4 +161,4 @@ class WindowDelegate {
} // namespace ChromeViews
-#endif // #ifndef CHROME_VIEWS_WINDOW_DELEGATE_H__
+#endif // CHROME_VIEWS_WINDOW_DELEGATE_H_