| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 6 #define CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "views/views_delegate.h" | 9 #include "views/views_delegate.h" |
| 10 | 10 |
| 11 class ChromeViewsDelegate : public views::ViewsDelegate { | 11 class ChromeViewsDelegate : public views::ViewsDelegate { |
| 12 public: | 12 public: |
| 13 ChromeViewsDelegate() {} | 13 ChromeViewsDelegate() {} |
| 14 virtual ~ChromeViewsDelegate() {} | 14 virtual ~ChromeViewsDelegate() {} |
| 15 | 15 |
| 16 // Overridden from views::ViewsDelegate: | 16 // Overridden from views::ViewsDelegate: |
| 17 virtual Clipboard* GetClipboard() const; | 17 virtual Clipboard* GetClipboard() const; |
| 18 virtual void SaveWindowPlacement(const std::wstring& window_name, | 18 virtual void SaveWindowPlacement(const std::wstring& window_name, |
| 19 const gfx::Rect& bounds, | 19 const gfx::Rect& bounds, |
| 20 bool maximized); | 20 bool maximized); |
| 21 virtual bool GetSavedWindowBounds(const std::wstring& window_name, | 21 virtual bool GetSavedWindowBounds(const std::wstring& window_name, |
| 22 gfx::Rect* bounds) const; | 22 gfx::Rect* bounds) const; |
| 23 virtual bool GetSavedMaximizedState(const std::wstring& window_name, | 23 virtual bool GetSavedMaximizedState(const std::wstring& window_name, |
| 24 bool* maximized) const; | 24 bool* maximized) const; |
| 25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
| 26 virtual HICON GetDefaultWindowIcon() const; | 26 virtual HICON GetDefaultWindowIcon() const; |
| 27 #endif | 27 #endif |
| 28 virtual void AddRef(); |
| 29 virtual void ReleaseRef(); |
| 28 | 30 |
| 29 private: | 31 private: |
| 30 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); | 32 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); |
| 31 }; | 33 }; |
| 32 | 34 |
| 33 #endif // CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 35 #endif // CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
| OLD | NEW |