| 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 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 CreateBrowserAccessibilityManagerIfNeeded(); | 732 CreateBrowserAccessibilityManagerIfNeeded(); |
| 733 BrowserAccessibilityManager* manager = GetBrowserAccessibilityManager(); | 733 BrowserAccessibilityManager* manager = GetBrowserAccessibilityManager(); |
| 734 if (manager) | 734 if (manager) |
| 735 return manager->GetRoot()->ToBrowserAccessibilityWin(); | 735 return manager->GetRoot()->ToBrowserAccessibilityWin(); |
| 736 #endif | 736 #endif |
| 737 | 737 |
| 738 NOTIMPLEMENTED(); | 738 NOTIMPLEMENTED(); |
| 739 return static_cast<gfx::NativeViewAccessible>(NULL); | 739 return static_cast<gfx::NativeViewAccessible>(NULL); |
| 740 } | 740 } |
| 741 | 741 |
| 742 ui::TextInputClient* RenderWidgetHostViewAura::GetTextInputClient() { |
| 743 return this; |
| 744 } |
| 745 |
| 742 void RenderWidgetHostViewAura::SetKeyboardFocus() { | 746 void RenderWidgetHostViewAura::SetKeyboardFocus() { |
| 743 #if defined(OS_WIN) | 747 #if defined(OS_WIN) |
| 744 if (CanFocus()) { | 748 if (CanFocus()) { |
| 745 aura::WindowTreeHost* host = window_->GetHost(); | 749 aura::WindowTreeHost* host = window_->GetHost(); |
| 746 if (host) | 750 if (host) |
| 747 ::SetFocus(host->GetAcceleratedWidget()); | 751 ::SetFocus(host->GetAcceleratedWidget()); |
| 748 } | 752 } |
| 749 #endif | 753 #endif |
| 750 } | 754 } |
| 751 | 755 |
| (...skipping 2418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3170 RenderWidgetHost* widget) { | 3174 RenderWidgetHost* widget) { |
| 3171 return new RenderWidgetHostViewAura(widget); | 3175 return new RenderWidgetHostViewAura(widget); |
| 3172 } | 3176 } |
| 3173 | 3177 |
| 3174 // static | 3178 // static |
| 3175 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 3179 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
| 3176 GetScreenInfoForWindow(results, NULL); | 3180 GetScreenInfoForWindow(results, NULL); |
| 3177 } | 3181 } |
| 3178 | 3182 |
| 3179 } // namespace content | 3183 } // namespace content |
| OLD | NEW |