| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 int item_count, | 46 int item_count, |
| 47 bool has_submenu) OVERRIDE {} | 47 bool has_submenu) OVERRIDE {} |
| 48 #if defined(OS_WIN) | 48 #if defined(OS_WIN) |
| 49 virtual HICON GetDefaultWindowIcon() const OVERRIDE { | 49 virtual HICON GetDefaultWindowIcon() const OVERRIDE { |
| 50 return NULL; | 50 return NULL; |
| 51 } | 51 } |
| 52 #endif | 52 #endif |
| 53 virtual NonClientFrameView* CreateDefaultNonClientFrameView( | 53 virtual NonClientFrameView* CreateDefaultNonClientFrameView( |
| 54 Widget* widget) OVERRIDE; | 54 Widget* widget) OVERRIDE; |
| 55 virtual bool UseTransparentWindows() const OVERRIDE; | 55 virtual bool UseTransparentWindows() const OVERRIDE; |
| 56 virtual void SetRefCounting(bool is_ref_counting) OVERRIDE; |
| 56 virtual void AddRef() OVERRIDE {} | 57 virtual void AddRef() OVERRIDE {} |
| 57 virtual void ReleaseRef() OVERRIDE {} | 58 virtual void ReleaseRef() OVERRIDE {} |
| 58 virtual content::WebContents* CreateWebContents( | 59 virtual content::WebContents* CreateWebContents( |
| 59 content::BrowserContext* browser_context, | 60 content::BrowserContext* browser_context, |
| 60 content::SiteInstance* site_instance) OVERRIDE; | 61 content::SiteInstance* site_instance) OVERRIDE; |
| 61 virtual void OnBeforeWidgetInit( | 62 virtual void OnBeforeWidgetInit( |
| 62 Widget::InitParams* params, | 63 Widget::InitParams* params, |
| 63 internal::NativeWidgetDelegate* delegate) OVERRIDE; | 64 internal::NativeWidgetDelegate* delegate) OVERRIDE; |
| 64 | 65 |
| 65 private: | 66 private: |
| 66 bool use_transparent_windows_; | 67 bool use_transparent_windows_; |
| 67 | 68 |
| 68 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); | 69 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 } // namespace views | 72 } // namespace views |
| 72 | 73 |
| 73 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ | 74 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
| OLD | NEW |