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