diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-10 06:21:49 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-10 06:21:49 +0000 |
commit | 609eeec226e06466acb6ccc0ea5d59d453e6623e (patch) | |
tree | 146aaa76b852537768c9b894904e502aed8a912c /chrome/browser/views/chrome_views_delegate.h | |
parent | 3ee83f2c99cecee4f712cbb6fd9084cb676287a0 (diff) | |
download | chromium_src-609eeec226e06466acb6ccc0ea5d59d453e6623e.zip chromium_src-609eeec226e06466acb6ccc0ea5d59d453e6623e.tar.gz chromium_src-609eeec226e06466acb6ccc0ea5d59d453e6623e.tar.bz2 |
Forgot to add these files as part of last change.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15734 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/chrome_views_delegate.h')
-rw-r--r-- | chrome/browser/views/chrome_views_delegate.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/chrome/browser/views/chrome_views_delegate.h b/chrome/browser/views/chrome_views_delegate.h new file mode 100644 index 0000000..007e7b0 --- /dev/null +++ b/chrome/browser/views/chrome_views_delegate.h @@ -0,0 +1,36 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +// source code is governed by a BSD-style license that can be found in the +// LICENSE file. + +#ifndef CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ +#define CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ + +#include "base/logging.h" +#include "views/views_delegate.h" + +class ChromeViewsDelegate : public views::ViewsDelegate { + public: + ChromeViewsDelegate() {} + virtual ~ChromeViewsDelegate() {} + + // Overridden from views::ViewsDelegate: + virtual Clipboard* GetClipboard() const; + virtual void SaveWindowPlacement(const std::wstring& window_name, + const gfx::Rect& bounds, + bool maximized, + bool always_on_top); + virtual bool GetSavedWindowBounds(const std::wstring& window_name, + gfx::Rect* bounds) const; + virtual bool GetSavedMaximizedState(const std::wstring& window_name, + bool* maximized) const; + virtual bool GetSavedAlwaysOnTopState(const std::wstring& window_name, + bool* always_on_top) const; +#if defined(OS_WIN) + virtual HICON GetDefaultWindowIcon() const; +#endif + + private: + DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); +}; + +#endif // #ifndef CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ |