| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "views/views_delegate.h" | 10 #include "views/views_delegate.h" |
| 11 | 11 |
| 12 class ChromeViewsDelegate : public views::ViewsDelegate { | 12 class ChromeViewsDelegate : public views::ViewsDelegate { |
| 13 public: | 13 public: |
| 14 ChromeViewsDelegate() {} | 14 ChromeViewsDelegate() {} |
| 15 virtual ~ChromeViewsDelegate() {} | 15 virtual ~ChromeViewsDelegate() {} |
| 16 | 16 |
| 17 // Overridden from views::ViewsDelegate: | 17 // Overridden from views::ViewsDelegate: |
| 18 virtual Clipboard* GetClipboard() const; | 18 virtual Clipboard* GetClipboard() const; |
| 19 virtual void SaveWindowPlacement(const std::wstring& window_name, | 19 virtual void SaveWindowPlacement(const std::wstring& window_name, |
| 20 const gfx::Rect& bounds, | 20 const gfx::Rect& bounds, |
| 21 bool maximized); | 21 bool maximized); |
| 22 virtual bool GetSavedWindowBounds(const std::wstring& window_name, | 22 virtual bool GetSavedWindowBounds(const std::wstring& window_name, |
| 23 gfx::Rect* bounds) const; | 23 gfx::Rect* bounds) const; |
| 24 virtual bool GetSavedMaximizedState(const std::wstring& window_name, | 24 virtual bool GetSavedMaximizedState(const std::wstring& window_name, |
| 25 bool* maximized) const; | 25 bool* maximized) const; |
| 26 virtual void NotifyAccessibilityEvent( |
| 27 views::View* view, AccessibilityTypes::Event event_type) {} |
| 26 #if defined(OS_WIN) | 28 #if defined(OS_WIN) |
| 27 virtual HICON GetDefaultWindowIcon() const; | 29 virtual HICON GetDefaultWindowIcon() const; |
| 28 #endif | 30 #endif |
| 29 virtual void AddRef(); | 31 virtual void AddRef(); |
| 30 virtual void ReleaseRef(); | 32 virtual void ReleaseRef(); |
| 31 | 33 |
| 32 private: | 34 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); | 35 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); |
| 34 }; | 36 }; |
| 35 | 37 |
| 36 #endif // CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 38 #endif // CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
| OLD | NEW |