OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "ui/base/accessibility/accessibility_types.h" | 12 #include "ui/base/accessibility/accessibility_types.h" |
13 #include "views/views_delegate.h" | 13 #include "views/views_delegate.h" |
14 | 14 |
15 class ChromeViewsDelegate : public views::ViewsDelegate { | 15 class ChromeViewsDelegate : public views::ViewsDelegate { |
16 public: | 16 public: |
| 17 static views::View* default_parent_view; |
| 18 |
17 ChromeViewsDelegate() {} | 19 ChromeViewsDelegate() {} |
18 virtual ~ChromeViewsDelegate() {} | 20 virtual ~ChromeViewsDelegate() {} |
19 | 21 |
20 // Overridden from views::ViewsDelegate: | 22 // Overridden from views::ViewsDelegate: |
21 virtual ui::Clipboard* GetClipboard() const OVERRIDE; | 23 virtual ui::Clipboard* GetClipboard() const OVERRIDE; |
22 virtual views::View* GetDefaultParentView() OVERRIDE; | 24 virtual views::View* GetDefaultParentView() OVERRIDE; |
23 virtual void SaveWindowPlacement(const views::Widget* window, | 25 virtual void SaveWindowPlacement(const views::Widget* window, |
24 const std::wstring& window_name, | 26 const std::wstring& window_name, |
25 const gfx::Rect& bounds, | 27 const gfx::Rect& bounds, |
26 bool maximized) OVERRIDE; | 28 bool maximized) OVERRIDE; |
(...skipping 18 matching lines...) Expand all Loading... |
45 virtual void AddRef() OVERRIDE; | 47 virtual void AddRef() OVERRIDE; |
46 virtual void ReleaseRef() OVERRIDE; | 48 virtual void ReleaseRef() OVERRIDE; |
47 | 49 |
48 virtual int GetDispositionForEvent(int event_flags) OVERRIDE; | 50 virtual int GetDispositionForEvent(int event_flags) OVERRIDE; |
49 | 51 |
50 private: | 52 private: |
51 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); | 53 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); |
52 }; | 54 }; |
53 | 55 |
54 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 56 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
OLD | NEW |