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 2036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2047 gfx::Point RenderWidgetHostViewAura::TransformPointToCoordSpaceForView( | 2047 gfx::Point RenderWidgetHostViewAura::TransformPointToCoordSpaceForView( |
2048 const gfx::Point& point, | 2048 const gfx::Point& point, |
2049 RenderWidgetHostViewBase* target_view) { | 2049 RenderWidgetHostViewBase* target_view) { |
2050 // In TransformPointToLocalCoordSpace() there is a Point-to-Pixel conversion, | 2050 // In TransformPointToLocalCoordSpace() there is a Point-to-Pixel conversion, |
2051 // but it is not necessary here because the final target view is responsible | 2051 // but it is not necessary here because the final target view is responsible |
2052 // for converting before computing the final transform. | 2052 // for converting before computing the final transform. |
2053 return delegated_frame_host_->TransformPointToCoordSpaceForView(point, | 2053 return delegated_frame_host_->TransformPointToCoordSpaceForView(point, |
2054 target_view); | 2054 target_view); |
2055 } | 2055 } |
2056 | 2056 |
2057 void RenderWidgetHostViewAura::FocusedNodeChanged(bool editable) { | 2057 void RenderWidgetHostViewAura::FocusedNodeChanged( |
| 2058 bool editable, |
| 2059 const gfx::Rect& node_bounds_in_screen) { |
2058 #if defined(OS_WIN) | 2060 #if defined(OS_WIN) |
2059 if (!editable && virtual_keyboard_requested_) { | 2061 if (!editable && virtual_keyboard_requested_) { |
2060 virtual_keyboard_requested_ = false; | 2062 virtual_keyboard_requested_ = false; |
2061 | 2063 |
2062 RenderViewHost* rvh = RenderViewHost::From(host_); | 2064 RenderViewHost* rvh = RenderViewHost::From(host_); |
2063 if (rvh && rvh->GetDelegate()) | 2065 if (rvh && rvh->GetDelegate()) |
2064 rvh->GetDelegate()->SetIsVirtualKeyboardRequested(false); | 2066 rvh->GetDelegate()->SetIsVirtualKeyboardRequested(false); |
2065 | 2067 |
2066 DCHECK(ui::OnScreenKeyboardDisplayManager::GetInstance()); | 2068 DCHECK(ui::OnScreenKeyboardDisplayManager::GetInstance()); |
2067 ui::OnScreenKeyboardDisplayManager::GetInstance()->DismissVirtualKeyboard(); | 2069 ui::OnScreenKeyboardDisplayManager::GetInstance()->DismissVirtualKeyboard(); |
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3040 ->GetTextSelection(focused_view) | 3042 ->GetTextSelection(focused_view) |
3041 ->GetSelectedText(&selected_text)) { | 3043 ->GetSelectedText(&selected_text)) { |
3042 // Set the CLIPBOARD_TYPE_SELECTION to the ui::Clipboard. | 3044 // Set the CLIPBOARD_TYPE_SELECTION to the ui::Clipboard. |
3043 ui::ScopedClipboardWriter clipboard_writer(ui::CLIPBOARD_TYPE_SELECTION); | 3045 ui::ScopedClipboardWriter clipboard_writer(ui::CLIPBOARD_TYPE_SELECTION); |
3044 clipboard_writer.WriteText(selected_text); | 3046 clipboard_writer.WriteText(selected_text); |
3045 } | 3047 } |
3046 #endif // defined(USE_X11) && !defined(OS_CHROMEOS) | 3048 #endif // defined(USE_X11) && !defined(OS_CHROMEOS) |
3047 } | 3049 } |
3048 | 3050 |
3049 } // namespace content | 3051 } // namespace content |
OLD | NEW |