| 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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 CreateBrowserAccessibilityManagerIfNeeded(); | 639 CreateBrowserAccessibilityManagerIfNeeded(); |
| 640 BrowserAccessibilityManager* manager = GetBrowserAccessibilityManager(); | 640 BrowserAccessibilityManager* manager = GetBrowserAccessibilityManager(); |
| 641 if (manager) | 641 if (manager) |
| 642 return manager->GetRoot()->ToBrowserAccessibilityWin(); | 642 return manager->GetRoot()->ToBrowserAccessibilityWin(); |
| 643 #endif | 643 #endif |
| 644 | 644 |
| 645 NOTIMPLEMENTED(); | 645 NOTIMPLEMENTED(); |
| 646 return static_cast<gfx::NativeViewAccessible>(NULL); | 646 return static_cast<gfx::NativeViewAccessible>(NULL); |
| 647 } | 647 } |
| 648 | 648 |
| 649 ui::TextInputClient* RenderWidgetHostViewAura::GetTextInputClient() { |
| 650 return this; |
| 651 } |
| 652 |
| 649 void RenderWidgetHostViewAura::SetKeyboardFocus() { | 653 void RenderWidgetHostViewAura::SetKeyboardFocus() { |
| 650 #if defined(OS_WIN) | 654 #if defined(OS_WIN) |
| 651 if (CanFocus()) { | 655 if (CanFocus()) { |
| 652 aura::WindowTreeHost* host = window_->GetHost(); | 656 aura::WindowTreeHost* host = window_->GetHost(); |
| 653 if (host) | 657 if (host) |
| 654 ::SetFocus(host->GetAcceleratedWidget()); | 658 ::SetFocus(host->GetAcceleratedWidget()); |
| 655 } | 659 } |
| 656 #endif | 660 #endif |
| 657 } | 661 } |
| 658 | 662 |
| (...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2378 | 2382 |
| 2379 //////////////////////////////////////////////////////////////////////////////// | 2383 //////////////////////////////////////////////////////////////////////////////// |
| 2380 // RenderWidgetHostViewBase, public: | 2384 // RenderWidgetHostViewBase, public: |
| 2381 | 2385 |
| 2382 // static | 2386 // static |
| 2383 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { | 2387 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { |
| 2384 GetScreenInfoForWindow(results, NULL); | 2388 GetScreenInfoForWindow(results, NULL); |
| 2385 } | 2389 } |
| 2386 | 2390 |
| 2387 } // namespace content | 2391 } // namespace content |
| OLD | NEW |