| 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 <peninputpanel_i.c> | 8 #include <peninputpanel_i.c> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 if (!GetBrowserAccessibilityManager()) { | 472 if (!GetBrowserAccessibilityManager()) { |
| 473 // Return busy document tree while renderer accessibility tree loads. | 473 // Return busy document tree while renderer accessibility tree loads. |
| 474 WebAccessibility::State busy_state = | 474 WebAccessibility::State busy_state = |
| 475 static_cast<WebAccessibility::State>(1 << WebAccessibility::STATE_BUSY); | 475 static_cast<WebAccessibility::State>(1 << WebAccessibility::STATE_BUSY); |
| 476 SetBrowserAccessibilityManager( | 476 SetBrowserAccessibilityManager( |
| 477 BrowserAccessibilityManager::CreateEmptyDocument( | 477 BrowserAccessibilityManager::CreateEmptyDocument( |
| 478 m_hWnd, busy_state, this)); | 478 m_hWnd, busy_state, this)); |
| 479 } | 479 } |
| 480 | 480 |
| 481 return GetBrowserAccessibilityManager()->GetRoot()-> | 481 return GetBrowserAccessibilityManager()->GetRoot()-> |
| 482 toBrowserAccessibilityWin(); | 482 ToBrowserAccessibilityWin(); |
| 483 } | 483 } |
| 484 | 484 |
| 485 void RenderWidgetHostViewWin::MovePluginWindows( | 485 void RenderWidgetHostViewWin::MovePluginWindows( |
| 486 const std::vector<WebPluginGeometry>& plugin_window_moves) { | 486 const std::vector<WebPluginGeometry>& plugin_window_moves) { |
| 487 if (plugin_window_moves.empty()) | 487 if (plugin_window_moves.empty()) |
| 488 return; | 488 return; |
| 489 | 489 |
| 490 bool oop_plugins = | 490 bool oop_plugins = |
| 491 !CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess) && | 491 !CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess) && |
| 492 !CommandLine::ForCurrentProcess()->HasSwitch(switches::kInProcessPlugins); | 492 !CommandLine::ForCurrentProcess()->HasSwitch(switches::kInProcessPlugins); |
| (...skipping 2204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2697 void RenderWidgetHostViewWin::ResetPointerDownContext() { | 2697 void RenderWidgetHostViewWin::ResetPointerDownContext() { |
| 2698 // If the default focus on the page is on an edit field and we did not | 2698 // If the default focus on the page is on an edit field and we did not |
| 2699 // receive a focus change in the context of a pointer down message, it means | 2699 // receive a focus change in the context of a pointer down message, it means |
| 2700 // that the pointer down message occurred on the edit field and we should | 2700 // that the pointer down message occurred on the edit field and we should |
| 2701 // display the on screen keyboard | 2701 // display the on screen keyboard |
| 2702 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) | 2702 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) |
| 2703 DisplayOnScreenKeyboardIfNeeded(); | 2703 DisplayOnScreenKeyboardIfNeeded(); |
| 2704 received_focus_change_after_pointer_down_ = false; | 2704 received_focus_change_after_pointer_down_ = false; |
| 2705 pointer_down_context_ = false; | 2705 pointer_down_context_ = false; |
| 2706 } | 2706 } |
| OLD | NEW |