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" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 } | 52 } |
53 | 53 |
54 virtual bool IsWindowInMetro(gfx::NativeWindow window) const { | 54 virtual bool IsWindowInMetro(gfx::NativeWindow window) const { |
55 return false; | 55 return false; |
56 } | 56 } |
57 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) | 57 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) |
58 virtual gfx::ImageSkia* GetDefaultWindowIcon() const OVERRIDE; | 58 virtual gfx::ImageSkia* GetDefaultWindowIcon() const OVERRIDE; |
59 #endif | 59 #endif |
60 virtual NonClientFrameView* CreateDefaultNonClientFrameView( | 60 virtual NonClientFrameView* CreateDefaultNonClientFrameView( |
61 Widget* widget) OVERRIDE; | 61 Widget* widget) OVERRIDE; |
62 virtual bool UseTransparentWindows() const OVERRIDE; | |
63 virtual void AddRef() OVERRIDE {} | 62 virtual void AddRef() OVERRIDE {} |
64 virtual void ReleaseRef() OVERRIDE {} | 63 virtual void ReleaseRef() OVERRIDE {} |
65 virtual content::WebContents* CreateWebContents( | 64 virtual content::WebContents* CreateWebContents( |
66 content::BrowserContext* browser_context, | 65 content::BrowserContext* browser_context, |
67 content::SiteInstance* site_instance) OVERRIDE; | 66 content::SiteInstance* site_instance) OVERRIDE; |
68 virtual void OnBeforeWidgetInit( | 67 virtual void OnBeforeWidgetInit( |
69 Widget::InitParams* params, | 68 Widget::InitParams* params, |
70 internal::NativeWidgetDelegate* delegate) OVERRIDE; | 69 internal::NativeWidgetDelegate* delegate) OVERRIDE; |
71 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() OVERRIDE; | 70 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() OVERRIDE; |
72 | 71 |
73 private: | 72 private: |
74 bool use_transparent_windows_; | 73 bool use_transparent_windows_; |
75 | 74 |
76 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); | 75 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); |
77 }; | 76 }; |
78 | 77 |
79 } // namespace views | 78 } // namespace views |
80 | 79 |
81 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ | 80 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
OLD | NEW |