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

Side by Side Diff: ui/views/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: ChromeOS build changes 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
« no previous file with comments | « ui/views/test/test_views_delegate.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_VIEWS_DELEGATE_H_ 5 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_
6 #define UI_VIEWS_VIEWS_DELEGATE_H_ 6 #define UI_VIEWS_VIEWS_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) 95 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS)
96 virtual gfx::ImageSkia* GetDefaultWindowIcon() const = 0; 96 virtual gfx::ImageSkia* GetDefaultWindowIcon() const = 0;
97 #endif 97 #endif
98 98
99 // Creates a default NonClientFrameView to be used for windows that don't 99 // Creates a default NonClientFrameView to be used for windows that don't
100 // specify their own. If this function returns NULL, the 100 // specify their own. If this function returns NULL, the
101 // views::CustomFrameView type will be used. 101 // views::CustomFrameView type will be used.
102 virtual NonClientFrameView* CreateDefaultNonClientFrameView( 102 virtual NonClientFrameView* CreateDefaultNonClientFrameView(
103 Widget* widget) = 0; 103 Widget* widget) = 0;
104 104
105 // Returns whether the embedding app wants windows to be created with the
106 // views::Widget marked as transparent. For example, an app may wish to
107 // apply transparent window frames in the NonClientFrameView.
108 virtual bool UseTransparentWindows() const = 0;
109
110 // AddRef/ReleaseRef are invoked while a menu is visible. They are used to 105 // AddRef/ReleaseRef are invoked while a menu is visible. They are used to
111 // ensure we don't attempt to exit while a menu is showing. 106 // ensure we don't attempt to exit while a menu is showing.
112 virtual void AddRef() = 0; 107 virtual void AddRef() = 0;
113 virtual void ReleaseRef() = 0; 108 virtual void ReleaseRef() = 0;
114 109
115 // Creates a web contents. This will return NULL unless overriden. 110 // Creates a web contents. This will return NULL unless overriden.
116 virtual content::WebContents* CreateWebContents( 111 virtual content::WebContents* CreateWebContents(
117 content::BrowserContext* browser_context, 112 content::BrowserContext* browser_context,
118 content::SiteInstance* site_instance) = 0; 113 content::SiteInstance* site_instance) = 0;
119 114
120 // Gives the platform a chance to modify the properties of a Widget. 115 // Gives the platform a chance to modify the properties of a Widget.
121 virtual void OnBeforeWidgetInit(Widget::InitParams* params, 116 virtual void OnBeforeWidgetInit(Widget::InitParams* params,
122 internal::NativeWidgetDelegate* delegate) = 0; 117 internal::NativeWidgetDelegate* delegate) = 0;
123 118
124 // Returns the default obscured text reveal duration. 119 // Returns the default obscured text reveal duration.
125 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() = 0; 120 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() = 0;
126 121
127 private: 122 private:
128 scoped_ptr<ViewsTouchSelectionControllerFactory> views_tsc_factory_; 123 scoped_ptr<ViewsTouchSelectionControllerFactory> views_tsc_factory_;
129 }; 124 };
130 125
131 } // namespace views 126 } // namespace views
132 127
133 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ 128 #endif // UI_VIEWS_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/test/test_views_delegate.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698