| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ | 5 #ifndef UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
| 6 #define UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ | 6 #define UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.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 "ui/views/views_delegate.h" | 13 #include "ui/views/views_delegate.h" |
| 14 | 14 |
| 15 namespace ui { | 15 namespace ui { |
| 16 class Clipboard; | 16 class Clipboard; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace views { | 19 namespace views { |
| 20 class View; | 20 class View; |
| 21 class Widget; | 21 class Widget; |
| 22 | 22 |
| 23 namespace corewm { |
| 24 class WMState; |
| 25 } |
| 26 |
| 23 class TestViewsDelegate : public ViewsDelegate { | 27 class TestViewsDelegate : public ViewsDelegate { |
| 24 public: | 28 public: |
| 25 TestViewsDelegate(); | 29 TestViewsDelegate(); |
| 26 virtual ~TestViewsDelegate(); | 30 virtual ~TestViewsDelegate(); |
| 27 | 31 |
| 28 void SetUseTransparentWindows(bool transparent); | 32 void SetUseTransparentWindows(bool transparent); |
| 29 | 33 |
| 30 // Overridden from ViewsDelegate: | 34 // Overridden from ViewsDelegate: |
| 31 virtual void SaveWindowPlacement(const Widget* window, | 35 virtual void SaveWindowPlacement(const Widget* window, |
| 32 const std::string& window_name, | 36 const std::string& window_name, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 content::BrowserContext* browser_context, | 69 content::BrowserContext* browser_context, |
| 66 content::SiteInstance* site_instance) OVERRIDE; | 70 content::SiteInstance* site_instance) OVERRIDE; |
| 67 virtual void OnBeforeWidgetInit( | 71 virtual void OnBeforeWidgetInit( |
| 68 Widget::InitParams* params, | 72 Widget::InitParams* params, |
| 69 internal::NativeWidgetDelegate* delegate) OVERRIDE; | 73 internal::NativeWidgetDelegate* delegate) OVERRIDE; |
| 70 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() OVERRIDE; | 74 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() OVERRIDE; |
| 71 | 75 |
| 72 private: | 76 private: |
| 73 bool use_transparent_windows_; | 77 bool use_transparent_windows_; |
| 74 | 78 |
| 79 #if defined(USE_AURA) |
| 80 scoped_ptr<views::corewm::WMState> wm_state_; |
| 81 #endif |
| 82 |
| 75 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); | 83 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); |
| 76 }; | 84 }; |
| 77 | 85 |
| 78 } // namespace views | 86 } // namespace views |
| 79 | 87 |
| 80 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ | 88 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
| OLD | NEW |