Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: ui/views/widget/widget.h

Issue 420653003: MacViews: Accessibility bridge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2nd draft, based on 423513005 Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698