| 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 "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
| (...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 CreateBrowserAccessibilityManagerIfNeeded(); | 772 CreateBrowserAccessibilityManagerIfNeeded(); |
| 773 BrowserAccessibilityManager* manager = GetBrowserAccessibilityManager(); | 773 BrowserAccessibilityManager* manager = GetBrowserAccessibilityManager(); |
| 774 if (manager) | 774 if (manager) |
| 775 return manager->GetRoot()->ToBrowserAccessibilityWin(); | 775 return manager->GetRoot()->ToBrowserAccessibilityWin(); |
| 776 #endif | 776 #endif |
| 777 | 777 |
| 778 NOTIMPLEMENTED(); | 778 NOTIMPLEMENTED(); |
| 779 return static_cast<gfx::NativeViewAccessible>(NULL); | 779 return static_cast<gfx::NativeViewAccessible>(NULL); |
| 780 } | 780 } |
| 781 | 781 |
| 782 ui::TextInputClient* RenderWidgetHostViewAura::GetTextInputClient() { |
| 783 return this; |
| 784 } |
| 785 |
| 782 void RenderWidgetHostViewAura::SetKeyboardFocus() { | 786 void RenderWidgetHostViewAura::SetKeyboardFocus() { |
| 783 #if defined(OS_WIN) | 787 #if defined(OS_WIN) |
| 784 if (CanFocus()) { | 788 if (CanFocus()) { |
| 785 aura::WindowTreeHost* host = window_->GetHost(); | 789 aura::WindowTreeHost* host = window_->GetHost(); |
| 786 if (host) | 790 if (host) |
| 787 ::SetFocus(host->GetAcceleratedWidget()); | 791 ::SetFocus(host->GetAcceleratedWidget()); |
| 788 } | 792 } |
| 789 #endif | 793 #endif |
| 790 } | 794 } |
| 791 | 795 |
| (...skipping 2799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3591 RenderWidgetHost* widget) { | 3595 RenderWidgetHost* widget) { |
| 3592 return new RenderWidgetHostViewAura(widget); | 3596 return new RenderWidgetHostViewAura(widget); |
| 3593 } | 3597 } |
| 3594 | 3598 |
| 3595 // static | 3599 // static |
| 3596 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 3600 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
| 3597 GetScreenInfoForWindow(results, NULL); | 3601 GetScreenInfoForWindow(results, NULL); |
| 3598 } | 3602 } |
| 3599 | 3603 |
| 3600 } // namespace content | 3604 } // namespace content |
| OLD | NEW |