| 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/accessibility/ax_enums.h" | 12 #include "ui/accessibility/ax_enums.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 wm { |
| 20 class WMState; |
| 21 } |
| 22 |
| 19 namespace views { | 23 namespace views { |
| 20 class View; | 24 class View; |
| 21 class Widget; | 25 class Widget; |
| 22 | 26 |
| 23 namespace corewm { | |
| 24 class WMState; | |
| 25 } | |
| 26 | |
| 27 class TestViewsDelegate : public ViewsDelegate { | 27 class TestViewsDelegate : public ViewsDelegate { |
| 28 public: | 28 public: |
| 29 TestViewsDelegate(); | 29 TestViewsDelegate(); |
| 30 virtual ~TestViewsDelegate(); | 30 virtual ~TestViewsDelegate(); |
| 31 | 31 |
| 32 void SetUseTransparentWindows(bool transparent); | 32 void SetUseTransparentWindows(bool transparent); |
| 33 | 33 |
| 34 // Overridden from ViewsDelegate: | 34 // Overridden from ViewsDelegate: |
| 35 virtual void SaveWindowPlacement(const Widget* window, | 35 virtual void SaveWindowPlacement(const Widget* window, |
| 36 const std::string& window_name, | 36 const std::string& window_name, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 content::BrowserContext* browser_context, | 69 content::BrowserContext* browser_context, |
| 70 content::SiteInstance* site_instance) OVERRIDE; | 70 content::SiteInstance* site_instance) OVERRIDE; |
| 71 virtual void OnBeforeWidgetInit( | 71 virtual void OnBeforeWidgetInit( |
| 72 Widget::InitParams* params, | 72 Widget::InitParams* params, |
| 73 internal::NativeWidgetDelegate* delegate) OVERRIDE; | 73 internal::NativeWidgetDelegate* delegate) OVERRIDE; |
| 74 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() OVERRIDE; | 74 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() OVERRIDE; |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 bool use_transparent_windows_; | 77 bool use_transparent_windows_; |
| 78 | 78 |
| 79 scoped_ptr<views::corewm::WMState> wm_state_; | 79 scoped_ptr<wm::WMState> wm_state_; |
| 80 | 80 |
| 81 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); | 81 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace views | 84 } // namespace views |
| 85 | 85 |
| 86 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ | 86 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
| OLD | NEW |