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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 2751503002: Revert of Add a window property to associate RWHVA with its child AX tree ID (Closed)
Patch Set: Created 3 years, 9 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
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 #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
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"
67 #include "ui/aura/client/aura_constants.h" 66 #include "ui/aura/client/aura_constants.h"
68 #include "ui/aura/client/cursor_client.h" 67 #include "ui/aura/client/cursor_client.h"
69 #include "ui/aura/client/cursor_client_observer.h" 68 #include "ui/aura/client/cursor_client_observer.h"
70 #include "ui/aura/client/focus_client.h" 69 #include "ui/aura/client/focus_client.h"
71 #include "ui/aura/client/screen_position_client.h" 70 #include "ui/aura/client/screen_position_client.h"
72 #include "ui/aura/client/transient_window_client.h" 71 #include "ui/aura/client/transient_window_client.h"
73 #include "ui/aura/client/window_parenting_client.h" 72 #include "ui/aura/client/window_parenting_client.h"
74 #include "ui/aura/env.h" 73 #include "ui/aura/env.h"
75 #include "ui/aura/mus/window_port_mus.h" 74 #include "ui/aura/mus/window_port_mus.h"
76 #include "ui/aura/window.h" 75 #include "ui/aura/window.h"
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 1144
1146 gfx::NativeViewAccessible 1145 gfx::NativeViewAccessible
1147 RenderWidgetHostViewAura::AccessibilityGetNativeViewAccessible() { 1146 RenderWidgetHostViewAura::AccessibilityGetNativeViewAccessible() {
1148 #if defined(OS_WIN) 1147 #if defined(OS_WIN)
1149 if (legacy_render_widget_host_HWND_) 1148 if (legacy_render_widget_host_HWND_)
1150 return legacy_render_widget_host_HWND_->window_accessible(); 1149 return legacy_render_widget_host_HWND_->window_accessible();
1151 #endif 1150 #endif
1152 return NULL; 1151 return NULL;
1153 } 1152 }
1154 1153
1155 void RenderWidgetHostViewAura::SetMainFrameAXTreeID(
1156 ui::AXTreeIDRegistry::AXTreeID id) {
1157 window_->SetProperty(ui::kChildAXTreeID, id);
1158 }
1159
1160 bool RenderWidgetHostViewAura::LockMouse() { 1154 bool RenderWidgetHostViewAura::LockMouse() {
1161 return event_handler_->LockMouse(); 1155 return event_handler_->LockMouse();
1162 } 1156 }
1163 1157
1164 void RenderWidgetHostViewAura::UnlockMouse() { 1158 void RenderWidgetHostViewAura::UnlockMouse() {
1165 event_handler_->UnlockMouse(); 1159 event_handler_->UnlockMouse();
1166 } 1160 }
1167 1161
1168 //////////////////////////////////////////////////////////////////////////////// 1162 ////////////////////////////////////////////////////////////////////////////////
1169 // RenderWidgetHostViewAura, ui::TextInputClient implementation: 1163 // RenderWidgetHostViewAura, ui::TextInputClient implementation:
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after
2382 2376
2383 void RenderWidgetHostViewAura::SetPopupChild( 2377 void RenderWidgetHostViewAura::SetPopupChild(
2384 RenderWidgetHostViewAura* popup_child_host_view) { 2378 RenderWidgetHostViewAura* popup_child_host_view) {
2385 popup_child_host_view_ = popup_child_host_view; 2379 popup_child_host_view_ = popup_child_host_view;
2386 event_handler_->SetPopupChild( 2380 event_handler_->SetPopupChild(
2387 popup_child_host_view, 2381 popup_child_host_view,
2388 popup_child_host_view ? popup_child_host_view->event_handler() : nullptr); 2382 popup_child_host_view ? popup_child_host_view->event_handler() : nullptr);
2389 } 2383 }
2390 2384
2391 } // namespace content 2385 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698