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

Unified Diff: content/browser/accessibility/browser_accessibility_win_unittest.cc

Issue 151083002: Create a visible window with class name Chrome_RenderWidgetHostHWND which corresponds to the bounds… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/accessibility/browser_accessibility_win_unittest.cc
===================================================================
--- content/browser/accessibility/browser_accessibility_win_unittest.cc (revision 249488)
+++ content/browser/accessibility/browser_accessibility_win_unittest.cc (working copy)
@@ -11,6 +11,7 @@
#include "content/browser/accessibility/browser_accessibility_manager_win.h"
#include "content/browser/accessibility/browser_accessibility_state_impl.h"
#include "content/browser/accessibility/browser_accessibility_win.h"
+#include "content/browser/renderer_host/legacy_render_widget_host_win.h"
#include "content/common/accessibility_messages.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/win/atl_module.h"
@@ -605,9 +606,11 @@
const int32 busy_state = 1 << ui::AX_STATE_BUSY;
const int32 readonly_state = 1 << ui::AX_STATE_READONLY;
const int32 enabled_state = 1 << blink::WebAXStateEnabled;
+ scoped_ptr<content::LegacyRenderWidgetHostHWND> accessible_hwnd(
+ content::LegacyRenderWidgetHostHWND::Create(GetDesktopWindow()));
scoped_ptr<BrowserAccessibilityManager> manager(
new BrowserAccessibilityManagerWin(
- GetDesktopWindow(),
+ accessible_hwnd.get(),
NULL,
BrowserAccessibilityManagerWin::GetEmptyDocument(),
NULL,
@@ -689,9 +692,12 @@
IID_IAccessible,
reinterpret_cast<void**>(desktop_hwnd_iaccessible.Receive())));
+ scoped_ptr<content::LegacyRenderWidgetHostHWND> accessible_hwnd(
+ content::LegacyRenderWidgetHostHWND::Create(GetDesktopWindow()));
+
scoped_ptr<BrowserAccessibilityManagerWin> manager(
new BrowserAccessibilityManagerWin(
- desktop_hwnd,
+ accessible_hwnd.get(),
desktop_hwnd_iaccessible,
BrowserAccessibilityManagerWin::GetEmptyDocument(),
NULL));
@@ -714,9 +720,11 @@
ASSERT_EQ(NULL, manager->parent_hwnd());
// Now create it again.
+ accessible_hwnd = content::LegacyRenderWidgetHostHWND::Create(
+ GetDesktopWindow());
manager.reset(
new BrowserAccessibilityManagerWin(
- desktop_hwnd,
+ accessible_hwnd.get(),
desktop_hwnd_iaccessible,
BrowserAccessibilityManagerWin::GetEmptyDocument(),
NULL));

Powered by Google App Engine
This is Rietveld 408576698