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 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1144 | 1145 |
1145 gfx::NativeViewAccessible | 1146 gfx::NativeViewAccessible |
1146 RenderWidgetHostViewAura::AccessibilityGetNativeViewAccessible() { | 1147 RenderWidgetHostViewAura::AccessibilityGetNativeViewAccessible() { |
1147 #if defined(OS_WIN) | 1148 #if defined(OS_WIN) |
1148 if (legacy_render_widget_host_HWND_) | 1149 if (legacy_render_widget_host_HWND_) |
1149 return legacy_render_widget_host_HWND_->window_accessible(); | 1150 return legacy_render_widget_host_HWND_->window_accessible(); |
1150 #endif | 1151 #endif |
1151 return NULL; | 1152 return NULL; |
1152 } | 1153 } |
1153 | 1154 |
| 1155 void RenderWidgetHostViewAura::SetMainFrameAXTreeID( |
| 1156 ui::AXTreeIDRegistry::AXTreeID id) { |
| 1157 window_->SetProperty(ui::kChildAXTreeID, id); |
| 1158 } |
| 1159 |
1154 bool RenderWidgetHostViewAura::LockMouse() { | 1160 bool RenderWidgetHostViewAura::LockMouse() { |
1155 return event_handler_->LockMouse(); | 1161 return event_handler_->LockMouse(); |
1156 } | 1162 } |
1157 | 1163 |
1158 void RenderWidgetHostViewAura::UnlockMouse() { | 1164 void RenderWidgetHostViewAura::UnlockMouse() { |
1159 event_handler_->UnlockMouse(); | 1165 event_handler_->UnlockMouse(); |
1160 } | 1166 } |
1161 | 1167 |
1162 //////////////////////////////////////////////////////////////////////////////// | 1168 //////////////////////////////////////////////////////////////////////////////// |
1163 // RenderWidgetHostViewAura, ui::TextInputClient implementation: | 1169 // RenderWidgetHostViewAura, ui::TextInputClient implementation: |
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2376 | 2382 |
2377 void RenderWidgetHostViewAura::SetPopupChild( | 2383 void RenderWidgetHostViewAura::SetPopupChild( |
2378 RenderWidgetHostViewAura* popup_child_host_view) { | 2384 RenderWidgetHostViewAura* popup_child_host_view) { |
2379 popup_child_host_view_ = popup_child_host_view; | 2385 popup_child_host_view_ = popup_child_host_view; |
2380 event_handler_->SetPopupChild( | 2386 event_handler_->SetPopupChild( |
2381 popup_child_host_view, | 2387 popup_child_host_view, |
2382 popup_child_host_view ? popup_child_host_view->event_handler() : nullptr); | 2388 popup_child_host_view ? popup_child_host_view->event_handler() : nullptr); |
2383 } | 2389 } |
2384 | 2390 |
2385 } // namespace content | 2391 } // namespace content |
OLD | NEW |