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

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

Issue 13524005: Cleanup: remove NotifyAccessibilityEvent from views::Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 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
« no previous file with comments | « ui/views/controls/textfield/native_textfield_views.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
11 11
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/observer_list.h" 14 #include "base/observer_list.h"
15 #include "ui/base/accessibility/accessibility_types.h"
16 #include "ui/base/ui_base_types.h" 15 #include "ui/base/ui_base_types.h"
17 #include "ui/compositor/layer_type.h" 16 #include "ui/compositor/layer_type.h"
18 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
19 #include "ui/gfx/rect.h" 18 #include "ui/gfx/rect.h"
20 #include "ui/views/focus/focus_manager.h" 19 #include "ui/views/focus/focus_manager.h"
21 #include "ui/views/widget/native_widget_delegate.h" 20 #include "ui/views/widget/native_widget_delegate.h"
22 #include "ui/views/window/client_view.h" 21 #include "ui/views/window/client_view.h"
23 #include "ui/views/window/non_client_view.h" 22 #include "ui/views/window/non_client_view.h"
24 23
25 #if defined(OS_WIN) 24 #if defined(OS_WIN)
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 gfx::Vector2d CalculateOffsetToAncestorWithLayer( 580 gfx::Vector2d CalculateOffsetToAncestorWithLayer(
582 ui::Layer** layer_parent); 581 ui::Layer** layer_parent);
583 582
584 // Invokes method of same name on the NativeWidget. 583 // Invokes method of same name on the NativeWidget.
585 void ReorderLayers(); 584 void ReorderLayers();
586 585
587 // Schedules an update to the root layers. The actual processing occurs when 586 // Schedules an update to the root layers. The actual processing occurs when
588 // GetRootLayers() is invoked. 587 // GetRootLayers() is invoked.
589 void UpdateRootLayers(); 588 void UpdateRootLayers();
590 589
591 // Notifies assistive technology that an accessibility event has
592 // occurred on |view|, such as when the view is focused or when its
593 // value changes. Pass true for |send_native_event| except for rare
594 // cases where the view is a native control that's already sending a
595 // native accessibility event and the duplicate event would cause
596 // problems.
597 void NotifyAccessibilityEvent(
598 View* view,
599 ui::AccessibilityTypes::Event event_type,
600 bool send_native_event);
601
602 const NativeWidget* native_widget() const; 590 const NativeWidget* native_widget() const;
603 NativeWidget* native_widget(); 591 NativeWidget* native_widget();
604 592
605 internal::NativeWidgetPrivate* native_widget_private() { 593 internal::NativeWidgetPrivate* native_widget_private() {
606 return native_widget_; 594 return native_widget_;
607 } 595 }
608 const internal::NativeWidgetPrivate* native_widget_private() const { 596 const internal::NativeWidgetPrivate* native_widget_private() const {
609 return native_widget_; 597 return native_widget_;
610 } 598 }
611 599
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 // True when window movement via mouse interaction with the frame should be 835 // True when window movement via mouse interaction with the frame should be
848 // disabled. 836 // disabled.
849 bool movement_disabled_; 837 bool movement_disabled_;
850 838
851 DISALLOW_COPY_AND_ASSIGN(Widget); 839 DISALLOW_COPY_AND_ASSIGN(Widget);
852 }; 840 };
853 841
854 } // namespace views 842 } // namespace views
855 843
856 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 844 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/native_textfield_views.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698