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 #include "content/browser/renderer_host/render_widget_host_view_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 #include "content/public/browser/render_view_host.h" | 56 #include "content/public/browser/render_view_host.h" |
57 #include "content/public/browser/user_metrics.h" | 57 #include "content/public/browser/user_metrics.h" |
58 #include "content/public/common/child_process_host.h" | 58 #include "content/public/common/child_process_host.h" |
59 #include "content/public/common/content_switches.h" | 59 #include "content/public/common/content_switches.h" |
60 #include "gpu/ipc/common/gpu_messages.h" | 60 #include "gpu/ipc/common/gpu_messages.h" |
61 #include "media/base/video_frame.h" | 61 #include "media/base/video_frame.h" |
62 #include "services/service_manager/public/cpp/interface_provider.h" | 62 #include "services/service_manager/public/cpp/interface_provider.h" |
63 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" | 63 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" |
64 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 64 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
65 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 65 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
| 66 #include "ui/accessibility/platform/aura_window_properties.h" |
66 #include "ui/aura/client/aura_constants.h" | 67 #include "ui/aura/client/aura_constants.h" |
67 #include "ui/aura/client/cursor_client.h" | 68 #include "ui/aura/client/cursor_client.h" |
68 #include "ui/aura/client/cursor_client_observer.h" | 69 #include "ui/aura/client/cursor_client_observer.h" |
69 #include "ui/aura/client/focus_client.h" | 70 #include "ui/aura/client/focus_client.h" |
70 #include "ui/aura/client/screen_position_client.h" | 71 #include "ui/aura/client/screen_position_client.h" |
71 #include "ui/aura/client/transient_window_client.h" | 72 #include "ui/aura/client/transient_window_client.h" |
72 #include "ui/aura/client/window_parenting_client.h" | 73 #include "ui/aura/client/window_parenting_client.h" |
73 #include "ui/aura/env.h" | 74 #include "ui/aura/env.h" |
74 #include "ui/aura/mus/window_port_mus.h" | 75 #include "ui/aura/mus/window_port_mus.h" |
75 #include "ui/aura/window.h" | 76 #include "ui/aura/window.h" |
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1139 | 1140 |
1140 gfx::NativeViewAccessible | 1141 gfx::NativeViewAccessible |
1141 RenderWidgetHostViewAura::AccessibilityGetNativeViewAccessible() { | 1142 RenderWidgetHostViewAura::AccessibilityGetNativeViewAccessible() { |
1142 #if defined(OS_WIN) | 1143 #if defined(OS_WIN) |
1143 if (legacy_render_widget_host_HWND_) | 1144 if (legacy_render_widget_host_HWND_) |
1144 return legacy_render_widget_host_HWND_->window_accessible(); | 1145 return legacy_render_widget_host_HWND_->window_accessible(); |
1145 #endif | 1146 #endif |
1146 return NULL; | 1147 return NULL; |
1147 } | 1148 } |
1148 | 1149 |
| 1150 void RenderWidgetHostViewAura::SetMainFrameAXTreeID( |
| 1151 ui::AXTreeIDRegistry::AXTreeID id) { |
| 1152 window_->SetProperty(ui::kChildAXTreeID, id); |
| 1153 } |
| 1154 |
1149 bool RenderWidgetHostViewAura::LockMouse() { | 1155 bool RenderWidgetHostViewAura::LockMouse() { |
1150 return event_handler_->LockMouse(); | 1156 return event_handler_->LockMouse(); |
1151 } | 1157 } |
1152 | 1158 |
1153 void RenderWidgetHostViewAura::UnlockMouse() { | 1159 void RenderWidgetHostViewAura::UnlockMouse() { |
1154 event_handler_->UnlockMouse(); | 1160 event_handler_->UnlockMouse(); |
1155 } | 1161 } |
1156 | 1162 |
1157 //////////////////////////////////////////////////////////////////////////////// | 1163 //////////////////////////////////////////////////////////////////////////////// |
1158 // RenderWidgetHostViewAura, ui::TextInputClient implementation: | 1164 // RenderWidgetHostViewAura, ui::TextInputClient implementation: |
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2369 | 2375 |
2370 void RenderWidgetHostViewAura::SetPopupChild( | 2376 void RenderWidgetHostViewAura::SetPopupChild( |
2371 RenderWidgetHostViewAura* popup_child_host_view) { | 2377 RenderWidgetHostViewAura* popup_child_host_view) { |
2372 popup_child_host_view_ = popup_child_host_view; | 2378 popup_child_host_view_ = popup_child_host_view; |
2373 event_handler_->SetPopupChild( | 2379 event_handler_->SetPopupChild( |
2374 popup_child_host_view, | 2380 popup_child_host_view, |
2375 popup_child_host_view ? popup_child_host_view->event_handler() : nullptr); | 2381 popup_child_host_view ? popup_child_host_view->event_handler() : nullptr); |
2376 } | 2382 } |
2377 | 2383 |
2378 } // namespace content | 2384 } // namespace content |
OLD | NEW |