| 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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 #endif | 616 #endif |
| 617 | 617 |
| 618 gfx::NativeViewAccessible RenderWidgetHostViewAura::GetNativeViewAccessible() { | 618 gfx::NativeViewAccessible RenderWidgetHostViewAura::GetNativeViewAccessible() { |
| 619 #if defined(OS_WIN) | 619 #if defined(OS_WIN) |
| 620 aura::WindowTreeHost* host = window_->GetHost(); | 620 aura::WindowTreeHost* host = window_->GetHost(); |
| 621 if (!host) | 621 if (!host) |
| 622 return static_cast<gfx::NativeViewAccessible>(NULL); | 622 return static_cast<gfx::NativeViewAccessible>(NULL); |
| 623 BrowserAccessibilityManager* manager = | 623 BrowserAccessibilityManager* manager = |
| 624 host_->GetOrCreateRootBrowserAccessibilityManager(); | 624 host_->GetOrCreateRootBrowserAccessibilityManager(); |
| 625 if (manager) | 625 if (manager) |
| 626 return ToBrowserAccessibilityWin(manager->GetRoot()); | 626 return ToBrowserAccessibilityWin(manager->GetRoot())->GetCOM(); |
| 627 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_X11) | 627 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_X11) |
| 628 BrowserAccessibilityManager* manager = | 628 BrowserAccessibilityManager* manager = |
| 629 host_->GetOrCreateRootBrowserAccessibilityManager(); | 629 host_->GetOrCreateRootBrowserAccessibilityManager(); |
| 630 if (manager) | 630 if (manager) |
| 631 return ToBrowserAccessibilityAuraLinux(manager->GetRoot())->GetAtkObject(); | 631 return ToBrowserAccessibilityAuraLinux(manager->GetRoot())->GetAtkObject(); |
| 632 #endif | 632 #endif |
| 633 | 633 |
| 634 NOTIMPLEMENTED(); | 634 NOTIMPLEMENTED(); |
| 635 return static_cast<gfx::NativeViewAccessible>(NULL); | 635 return static_cast<gfx::NativeViewAccessible>(NULL); |
| 636 } | 636 } |
| (...skipping 1737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2374 } | 2374 } |
| 2375 | 2375 |
| 2376 void RenderWidgetHostViewAura::UpdateNeedsBeginFramesInternal() { | 2376 void RenderWidgetHostViewAura::UpdateNeedsBeginFramesInternal() { |
| 2377 if (!delegated_frame_host_) | 2377 if (!delegated_frame_host_) |
| 2378 return; | 2378 return; |
| 2379 delegated_frame_host_->SetNeedsBeginFrames(needs_begin_frames_ || | 2379 delegated_frame_host_->SetNeedsBeginFrames(needs_begin_frames_ || |
| 2380 needs_flush_input_); | 2380 needs_flush_input_); |
| 2381 } | 2381 } |
| 2382 | 2382 |
| 2383 } // namespace content | 2383 } // namespace content |
| OLD | NEW |