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