OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_WIDGET_WIDGET_H_ | 5 #ifndef VIEWS_WIDGET_WIDGET_H_ |
6 #define VIEWS_WIDGET_WIDGET_H_ | 6 #define VIEWS_WIDGET_WIDGET_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 // Returns whether the Widget is visible to the user. | 189 // Returns whether the Widget is visible to the user. |
190 virtual bool IsVisible() const; | 190 virtual bool IsVisible() const; |
191 | 191 |
192 // Returns whether the Widget is the currently active window. | 192 // Returns whether the Widget is the currently active window. |
193 virtual bool IsActive() const; | 193 virtual bool IsActive() const; |
194 | 194 |
195 // Returns whether the Widget is customized for accessibility. | 195 // Returns whether the Widget is customized for accessibility. |
196 virtual bool IsAccessibleWidget() const; | 196 virtual bool IsAccessibleWidget() const; |
197 | 197 |
198 // Starts a drag operation for the specified view. |point| is a position in | |
199 // |view| coordinates that the drag was initiated from. | |
200 virtual void GenerateMousePressedForView(View* view, | |
201 const gfx::Point& point); | |
202 | |
203 // Returns the TooltipManager for this Widget. If this Widget does not support | 198 // Returns the TooltipManager for this Widget. If this Widget does not support |
204 // tooltips, NULL is returned. | 199 // tooltips, NULL is returned. |
205 virtual TooltipManager* GetTooltipManager(); | 200 virtual TooltipManager* GetTooltipManager(); |
206 | 201 |
207 // Returns the accelerator given a command id. Returns false if there is | 202 // Returns the accelerator given a command id. Returns false if there is |
208 // no accelerator associated with a given id, which is a common condition. | 203 // no accelerator associated with a given id, which is a common condition. |
209 virtual bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); | 204 virtual bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); |
210 | 205 |
211 // Returns the Window containing this Widget, or NULL if not contained in a | 206 // Returns the Window containing this Widget, or NULL if not contained in a |
212 // window. | 207 // window. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 | 298 |
304 // A theme provider to use when no other theme provider is specified. | 299 // A theme provider to use when no other theme provider is specified. |
305 scoped_ptr<DefaultThemeProvider> default_theme_provider_; | 300 scoped_ptr<DefaultThemeProvider> default_theme_provider_; |
306 | 301 |
307 DISALLOW_COPY_AND_ASSIGN(Widget); | 302 DISALLOW_COPY_AND_ASSIGN(Widget); |
308 }; | 303 }; |
309 | 304 |
310 } // namespace views | 305 } // namespace views |
311 | 306 |
312 #endif // VIEWS_WIDGET_WIDGET_H_ | 307 #endif // VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |