| 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_WIDGET_WIDGET_H_ | 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ |
| 6 #define UI_VIEWS_WIDGET_WIDGET_H_ | 6 #define UI_VIEWS_WIDGET_WIDGET_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <stack> | 9 #include <stack> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 int row_resource_id); | 338 int row_resource_id); |
| 339 | 339 |
| 340 // Returns true if the specified type requires a NonClientView. | 340 // Returns true if the specified type requires a NonClientView. |
| 341 static bool RequiresNonClientView(InitParams::Type type); | 341 static bool RequiresNonClientView(InitParams::Type type); |
| 342 | 342 |
| 343 void Init(const InitParams& params); | 343 void Init(const InitParams& params); |
| 344 | 344 |
| 345 // Returns the gfx::NativeView associated with this Widget. | 345 // Returns the gfx::NativeView associated with this Widget. |
| 346 gfx::NativeView GetNativeView() const; | 346 gfx::NativeView GetNativeView() const; |
| 347 | 347 |
| 348 // Returns the native accessibility interface for this widget. |
| 349 gfx::NativeViewAccessible GetNativeViewAccessible() const; |
| 350 |
| 348 // Returns the gfx::NativeWindow associated with this Widget. This may return | 351 // Returns the gfx::NativeWindow associated with this Widget. This may return |
| 349 // NULL on some platforms if the widget was created with a type other than | 352 // NULL on some platforms if the widget was created with a type other than |
| 350 // TYPE_WINDOW or TYPE_PANEL. | 353 // TYPE_WINDOW or TYPE_PANEL. |
| 351 gfx::NativeWindow GetNativeWindow() const; | 354 gfx::NativeWindow GetNativeWindow() const; |
| 352 | 355 |
| 353 // Add/remove observer. | 356 // Add/remove observer. |
| 354 void AddObserver(WidgetObserver* observer); | 357 void AddObserver(WidgetObserver* observer); |
| 355 void RemoveObserver(WidgetObserver* observer); | 358 void RemoveObserver(WidgetObserver* observer); |
| 356 bool HasObserver(WidgetObserver* observer); | 359 bool HasObserver(WidgetObserver* observer); |
| 357 | 360 |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 bool movement_disabled_; | 943 bool movement_disabled_; |
| 941 | 944 |
| 942 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 945 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
| 943 | 946 |
| 944 DISALLOW_COPY_AND_ASSIGN(Widget); | 947 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 945 }; | 948 }; |
| 946 | 949 |
| 947 } // namespace views | 950 } // namespace views |
| 948 | 951 |
| 949 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 952 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |