| 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 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 } | 857 } |
| 858 | 858 |
| 859 bool RenderWidgetHostViewAura::HasFocus() const { | 859 bool RenderWidgetHostViewAura::HasFocus() const { |
| 860 return window_->HasFocus(); | 860 return window_->HasFocus(); |
| 861 } | 861 } |
| 862 | 862 |
| 863 bool RenderWidgetHostViewAura::IsSurfaceAvailableForCopy() const { | 863 bool RenderWidgetHostViewAura::IsSurfaceAvailableForCopy() const { |
| 864 return CanCopyToBitmap() || !!host_->GetBackingStore(false); | 864 return CanCopyToBitmap() || !!host_->GetBackingStore(false); |
| 865 } | 865 } |
| 866 | 866 |
| 867 ui::TextInputClient* RenderWidgetHostViewAura::GetTextInputClient() { |
| 868 return this; |
| 869 } |
| 870 |
| 867 void RenderWidgetHostViewAura::Show() { | 871 void RenderWidgetHostViewAura::Show() { |
| 868 window_->Show(); | 872 window_->Show(); |
| 869 WasShown(); | 873 WasShown(); |
| 870 #if defined(OS_WIN) | 874 #if defined(OS_WIN) |
| 871 if (legacy_render_widget_host_HWND_) | 875 if (legacy_render_widget_host_HWND_) |
| 872 legacy_render_widget_host_HWND_->Show(); | 876 legacy_render_widget_host_HWND_->Show(); |
| 873 #endif | 877 #endif |
| 874 } | 878 } |
| 875 | 879 |
| 876 void RenderWidgetHostViewAura::Hide() { | 880 void RenderWidgetHostViewAura::Hide() { |
| (...skipping 2714 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 |