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_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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 // Returns the default obscured text reveal duration. | 124 // Returns the default obscured text reveal duration. |
125 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration(); | 125 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration(); |
126 | 126 |
127 // Returns true if the operating system's window manager will always provide a | 127 // Returns true if the operating system's window manager will always provide a |
128 // title bar with caption buttons (ignoring the setting to | 128 // title bar with caption buttons (ignoring the setting to |
129 // |remove_standard_frame| in InitParams). If |maximized|, this applies to | 129 // |remove_standard_frame| in InitParams). If |maximized|, this applies to |
130 // maximized windows; otherwise to restored windows. | 130 // maximized windows; otherwise to restored windows. |
131 virtual bool WindowManagerProvidesTitleBar(bool maximized); | 131 virtual bool WindowManagerProvidesTitleBar(bool maximized); |
132 | 132 |
133 #if defined(USE_AURA) | |
134 // Returns the context factory for new windows. | 133 // Returns the context factory for new windows. |
135 virtual ui::ContextFactory* GetContextFactory(); | 134 virtual ui::ContextFactory* GetContextFactory(); |
136 #endif | |
137 | 135 |
138 #if defined(OS_WIN) | 136 #if defined(OS_WIN) |
139 // Starts a query for the appbar autohide edges of the specified monitor and | 137 // Starts a query for the appbar autohide edges of the specified monitor and |
140 // returns the current value. If the query finds the edges have changed from | 138 // returns the current value. If the query finds the edges have changed from |
141 // the current value, |callback| is subsequently invoked. If the edges have | 139 // the current value, |callback| is subsequently invoked. If the edges have |
142 // not changed, |callback| is never run. | 140 // not changed, |callback| is never run. |
143 // | 141 // |
144 // The return value is a bitmask of AppbarAutohideEdge. | 142 // The return value is a bitmask of AppbarAutohideEdge. |
145 virtual int GetAppbarAutohideEdges(HMONITOR monitor, | 143 virtual int GetAppbarAutohideEdges(HMONITOR monitor, |
146 const base::Closure& callback); | 144 const base::Closure& callback); |
147 #endif | 145 #endif |
148 | 146 |
149 // The active ViewsDelegate used by the views system. | 147 // The active ViewsDelegate used by the views system. |
150 static ViewsDelegate* views_delegate; | 148 static ViewsDelegate* views_delegate; |
151 | 149 |
152 private: | 150 private: |
153 scoped_ptr<ViewsTouchSelectionControllerFactory> views_tsc_factory_; | 151 scoped_ptr<ViewsTouchSelectionControllerFactory> views_tsc_factory_; |
154 | 152 |
155 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); | 153 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); |
156 }; | 154 }; |
157 | 155 |
158 } // namespace views | 156 } // namespace views |
159 | 157 |
160 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 158 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
OLD | NEW |