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