Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: ui/views/test/test_views_delegate.h

Issue 108193005: Fixing opacity for browser frame window on ASH/Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved logic to OnBeforeWidgetInit Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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; 62 virtual bool UseTransparentWindows(Widget::InitParams* params) const OVERRIDE;
sky 2013/12/12 23:58:14 Remove this entirely.
Shrikant Kelkar 2013/12/17 07:06:21 Done.
63 virtual void AddRef() OVERRIDE {} 63 virtual void AddRef() OVERRIDE {}
64 virtual void ReleaseRef() OVERRIDE {} 64 virtual void ReleaseRef() OVERRIDE {}
65 virtual content::WebContents* CreateWebContents( 65 virtual content::WebContents* CreateWebContents(
66 content::BrowserContext* browser_context, 66 content::BrowserContext* browser_context,
67 content::SiteInstance* site_instance) OVERRIDE; 67 content::SiteInstance* site_instance) OVERRIDE;
68 virtual void OnBeforeWidgetInit( 68 virtual void OnBeforeWidgetInit(
69 Widget::InitParams* params, 69 Widget::InitParams* params,
70 internal::NativeWidgetDelegate* delegate) OVERRIDE; 70 internal::NativeWidgetDelegate* delegate) OVERRIDE;
71 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() OVERRIDE; 71 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() OVERRIDE;
72 72
73 private: 73 private:
74 bool use_transparent_windows_; 74 bool use_transparent_windows_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); 76 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate);
77 }; 77 };
78 78
79 } // namespace views 79 } // namespace views
80 80
81 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 81 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698