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) {} | |
28 #if defined(OS_WIN) | 26 #if defined(OS_WIN) |
29 virtual HICON GetDefaultWindowIcon() const; | 27 virtual HICON GetDefaultWindowIcon() const; |
30 #endif | 28 #endif |
31 virtual void AddRef(); | 29 virtual void AddRef(); |
32 virtual void ReleaseRef(); | 30 virtual void ReleaseRef(); |
33 | 31 |
34 private: | 32 private: |
35 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); | 33 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); |
36 }; | 34 }; |
37 | 35 |
38 #endif // CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 36 #endif // CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
OLD | NEW |