| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 169 |
| 170 // Returns true if the operating system's window manager will always provide a | 170 // Returns true if the operating system's window manager will always provide a |
| 171 // title bar with caption buttons (ignoring the setting to | 171 // title bar with caption buttons (ignoring the setting to |
| 172 // |remove_standard_frame| in InitParams). If |maximized|, this applies to | 172 // |remove_standard_frame| in InitParams). If |maximized|, this applies to |
| 173 // maximized windows; otherwise to restored windows. | 173 // maximized windows; otherwise to restored windows. |
| 174 virtual bool WindowManagerProvidesTitleBar(bool maximized); | 174 virtual bool WindowManagerProvidesTitleBar(bool maximized); |
| 175 | 175 |
| 176 // Returns the context factory for new windows. | 176 // Returns the context factory for new windows. |
| 177 virtual ui::ContextFactory* GetContextFactory(); | 177 virtual ui::ContextFactory* GetContextFactory(); |
| 178 | 178 |
| 179 // Returns the privileged context factory for new windows. |
| 180 virtual ui::ContextFactoryPrivate* GetContextFactoryPrivate(); |
| 181 |
| 179 // Returns the user-visible name of the application. | 182 // Returns the user-visible name of the application. |
| 180 virtual std::string GetApplicationName(); | 183 virtual std::string GetApplicationName(); |
| 181 | 184 |
| 182 #if defined(OS_WIN) | 185 #if defined(OS_WIN) |
| 183 // Starts a query for the appbar autohide edges of the specified monitor and | 186 // Starts a query for the appbar autohide edges of the specified monitor and |
| 184 // returns the current value. If the query finds the edges have changed from | 187 // returns the current value. If the query finds the edges have changed from |
| 185 // the current value, |callback| is subsequently invoked. If the edges have | 188 // the current value, |callback| is subsequently invoked. If the edges have |
| 186 // not changed, |callback| is never run. | 189 // not changed, |callback| is never run. |
| 187 // | 190 // |
| 188 // The return value is a bitmask of AppbarAutohideEdge. | 191 // The return value is a bitmask of AppbarAutohideEdge. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 216 #endif | 219 #endif |
| 217 | 220 |
| 218 NativeWidgetFactory native_widget_factory_; | 221 NativeWidgetFactory native_widget_factory_; |
| 219 | 222 |
| 220 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); | 223 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); |
| 221 }; | 224 }; |
| 222 | 225 |
| 223 } // namespace views | 226 } // namespace views |
| 224 | 227 |
| 225 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 228 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
| OLD | NEW |