OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the 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( | 26 virtual void NotifyAccessibilityEvent( |
27 views::View* view, AccessibilityTypes::Event event_type) {} | 27 views::View* view, AccessibilityTypes::Event event_type); |
28 #if defined(OS_WIN) | 28 #if defined(OS_WIN) |
29 virtual HICON GetDefaultWindowIcon() const; | 29 virtual HICON GetDefaultWindowIcon() const; |
30 #endif | 30 #endif |
31 virtual void AddRef(); | 31 virtual void AddRef(); |
32 virtual void ReleaseRef(); | 32 virtual void ReleaseRef(); |
33 | 33 |
34 private: | 34 private: |
35 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); | 35 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); |
36 }; | 36 }; |
37 | 37 |
38 #endif // CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 38 #endif // CHROME_BROWSER_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
OLD | NEW |