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_win.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_win.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <peninputpanel_i.c> | 9 #include <peninputpanel_i.c> |
10 #include <stack> | 10 #include <stack> |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 SetBrowserAccessibilityManager( | 630 SetBrowserAccessibilityManager( |
631 BrowserAccessibilityManager::CreateEmptyDocument( | 631 BrowserAccessibilityManager::CreateEmptyDocument( |
632 m_hWnd, busy_state, this)); | 632 m_hWnd, busy_state, this)); |
633 } | 633 } |
634 | 634 |
635 return GetBrowserAccessibilityManager()->GetRoot()-> | 635 return GetBrowserAccessibilityManager()->GetRoot()-> |
636 ToBrowserAccessibilityWin(); | 636 ToBrowserAccessibilityWin(); |
637 } | 637 } |
638 | 638 |
639 void RenderWidgetHostViewWin::MovePluginWindows( | 639 void RenderWidgetHostViewWin::MovePluginWindows( |
640 const gfx::Point& scroll_offset, | 640 const gfx::Vector2d& scroll_offset, |
641 const std::vector<webkit::npapi::WebPluginGeometry>& plugin_window_moves) { | 641 const std::vector<webkit::npapi::WebPluginGeometry>& plugin_window_moves) { |
642 MovePluginWindowsHelper(m_hWnd, plugin_window_moves); | 642 MovePluginWindowsHelper(m_hWnd, plugin_window_moves); |
643 } | 643 } |
644 | 644 |
645 static BOOL CALLBACK AddChildWindowToVector(HWND hwnd, LPARAM lparam) { | 645 static BOOL CALLBACK AddChildWindowToVector(HWND hwnd, LPARAM lparam) { |
646 std::vector<HWND>* vector = reinterpret_cast<std::vector<HWND>*>(lparam); | 646 std::vector<HWND>* vector = reinterpret_cast<std::vector<HWND>*>(lparam); |
647 vector->push_back(hwnd); | 647 vector->push_back(hwnd); |
648 return TRUE; | 648 return TRUE; |
649 } | 649 } |
650 | 650 |
(...skipping 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3111 // receive a focus change in the context of a pointer down message, it means | 3111 // receive a focus change in the context of a pointer down message, it means |
3112 // that the pointer down message occurred on the edit field and we should | 3112 // that the pointer down message occurred on the edit field and we should |
3113 // display the on screen keyboard | 3113 // display the on screen keyboard |
3114 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) | 3114 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) |
3115 DisplayOnScreenKeyboardIfNeeded(); | 3115 DisplayOnScreenKeyboardIfNeeded(); |
3116 received_focus_change_after_pointer_down_ = false; | 3116 received_focus_change_after_pointer_down_ = false; |
3117 pointer_down_context_ = false; | 3117 pointer_down_context_ = false; |
3118 } | 3118 } |
3119 | 3119 |
3120 } // namespace content | 3120 } // namespace content |
OLD | NEW |