Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_win.cc

Issue 3582015: Revert 61704 - Make BrowserAccessibilityManager cross platform. Step 2. In Pr... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_win.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/render_widget_host_view_win.h" 5 #include "chrome/browser/renderer_host/render_widget_host_view_win.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/l10n_util_win.h" 8 #include "app/l10n_util_win.h"
9 #include "app/resource_bundle.h" 9 #include "app/resource_bundle.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/histogram.h" 11 #include "base/histogram.h"
12 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
13 #include "base/process_util.h" 13 #include "base/process_util.h"
14 #include "base/scoped_comptr_win.h" 14 #include "base/scoped_comptr_win.h"
15 #include "base/thread.h" 15 #include "base/thread.h"
16 #include "base/win_util.h" 16 #include "base/win_util.h"
17 #include "chrome/browser/accessibility/browser_accessibility_win.h" 17 #include "chrome/browser/accessibility/browser_accessibility.h"
18 #include "chrome/browser/accessibility/browser_accessibility_manager.h" 18 #include "chrome/browser/accessibility/browser_accessibility_manager.h"
19 #include "chrome/browser/accessibility/browser_accessibility_state.h" 19 #include "chrome/browser/accessibility/browser_accessibility_state.h"
20 #include "chrome/browser/browser_process.h" 20 #include "chrome/browser/browser_process.h"
21 #include "chrome/browser/browser_trial.h" 21 #include "chrome/browser/browser_trial.h"
22 #include "chrome/browser/chrome_thread.h" 22 #include "chrome/browser/chrome_thread.h"
23 #include "chrome/browser/plugin_process_host.h" 23 #include "chrome/browser/plugin_process_host.h"
24 #include "chrome/browser/renderer_host/backing_store.h" 24 #include "chrome/browser/renderer_host/backing_store.h"
25 #include "chrome/browser/renderer_host/backing_store_win.h" 25 #include "chrome/browser/renderer_host/backing_store_win.h"
26 #include "chrome/browser/renderer_host/gpu_view_host.h" 26 #include "chrome/browser/renderer_host/gpu_view_host.h"
27 #include "chrome/browser/renderer_host/render_process_host.h" 27 #include "chrome/browser/renderer_host/render_process_host.h"
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1569 if (!browser_accessibility_manager_.get()) { 1569 if (!browser_accessibility_manager_.get()) {
1570 // Return busy document tree while renderer accessibility tree loads. 1570 // Return busy document tree while renderer accessibility tree loads.
1571 webkit_glue::WebAccessibility loading_tree; 1571 webkit_glue::WebAccessibility loading_tree;
1572 loading_tree.role = WebAccessibility::ROLE_DOCUMENT; 1572 loading_tree.role = WebAccessibility::ROLE_DOCUMENT;
1573 loading_tree.state = (1 << WebAccessibility::STATE_BUSY); 1573 loading_tree.state = (1 << WebAccessibility::STATE_BUSY);
1574 browser_accessibility_manager_.reset( 1574 browser_accessibility_manager_.reset(
1575 BrowserAccessibilityManager::Create(m_hWnd, loading_tree, this)); 1575 BrowserAccessibilityManager::Create(m_hWnd, loading_tree, this));
1576 } 1576 }
1577 1577
1578 ScopedComPtr<IAccessible> root( 1578 ScopedComPtr<IAccessible> root(
1579 browser_accessibility_manager_->GetRoot()->toBrowserAccessibilityWin()); 1579 browser_accessibility_manager_->GetRootAccessible());
1580 if (root.get()) 1580 if (root.get())
1581 return LresultFromObject(IID_IAccessible, wparam, root.Detach()); 1581 return LresultFromObject(IID_IAccessible, wparam, root.Detach());
1582 1582
1583 handled = false; 1583 handled = false;
1584 return static_cast<LRESULT>(0L); 1584 return static_cast<LRESULT>(0L);
1585 } 1585 }
1586 1586
1587 void RenderWidgetHostViewWin::OnFinalMessage(HWND window) { 1587 void RenderWidgetHostViewWin::OnFinalMessage(HWND window) {
1588 // When the render widget host is being destroyed, it ends up calling 1588 // When the render widget host is being destroyed, it ends up calling
1589 // WillDestroyRenderWidget (through the RENDER_WIDGET_HOST_DESTROYED 1589 // WillDestroyRenderWidget (through the RENDER_WIDGET_HOST_DESTROYED
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1704 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( 1704 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView(
1705 gfx::NativeView native_view) { 1705 gfx::NativeView native_view) {
1706 if (::IsWindow(native_view)) { 1706 if (::IsWindow(native_view)) {
1707 HANDLE raw_render_host_view = ::GetProp(native_view, 1707 HANDLE raw_render_host_view = ::GetProp(native_view,
1708 kRenderWidgetHostViewKey); 1708 kRenderWidgetHostViewKey);
1709 if (raw_render_host_view) 1709 if (raw_render_host_view)
1710 return reinterpret_cast<RenderWidgetHostView*>(raw_render_host_view); 1710 return reinterpret_cast<RenderWidgetHostView*>(raw_render_host_view);
1711 } 1711 }
1712 return NULL; 1712 return NULL;
1713 } 1713 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698