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

Side by Side Diff: content/browser/accessibility/browser_accessibility_win_unittest.cc

Issue 387353004: Create only a single LegacyRenderWidgetHostHWND per WebContentsViewAura. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render_frame_ax_3
Patch Set: Oops, forgot to upload delegate in new file Created 6 years, 1 month 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
« no previous file with comments | « no previous file | content/browser/renderer_host/legacy_render_widget_host_win.h » ('j') | 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) 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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "base/win/scoped_bstr.h" 7 #include "base/win/scoped_bstr.h"
8 #include "base/win/scoped_comptr.h" 8 #include "base/win/scoped_comptr.h"
9 #include "base/win/scoped_variant.h" 9 #include "base/win/scoped_variant.h"
10 #include "content/browser/accessibility/browser_accessibility_manager.h" 10 #include "content/browser/accessibility/browser_accessibility_manager.h"
11 #include "content/browser/accessibility/browser_accessibility_manager_win.h" 11 #include "content/browser/accessibility/browser_accessibility_manager_win.h"
12 #include "content/browser/accessibility/browser_accessibility_state_impl.h" 12 #include "content/browser/accessibility/browser_accessibility_state_impl.h"
13 #include "content/browser/accessibility/browser_accessibility_win.h" 13 #include "content/browser/accessibility/browser_accessibility_win.h"
14 #include "content/browser/renderer_host/legacy_render_widget_host_win.h"
15 #include "content/common/accessibility_messages.h" 14 #include "content/common/accessibility_messages.h"
16 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
17 #include "ui/base/win/atl_module.h" 16 #include "ui/base/win/atl_module.h"
18 17
19 namespace content { 18 namespace content {
20 namespace { 19 namespace {
21 20
22 21
23 // CountedBrowserAccessibility ------------------------------------------------ 22 // CountedBrowserAccessibility ------------------------------------------------
24 23
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 EXPECT_EQ(1 << ui::AX_STATE_BUSY | 697 EXPECT_EQ(1 << ui::AX_STATE_BUSY |
699 1 << ui::AX_STATE_READ_ONLY | 698 1 << ui::AX_STATE_READ_ONLY |
700 1 << ui::AX_STATE_ENABLED, 699 1 << ui::AX_STATE_ENABLED,
701 root->GetState()); 700 root->GetState());
702 701
703 LONG unique_id_win = root->ToBrowserAccessibilityWin()->unique_id_win(); 702 LONG unique_id_win = root->ToBrowserAccessibilityWin()->unique_id_win();
704 ASSERT_EQ(root, manager->GetFromUniqueIdWin(unique_id_win)); 703 ASSERT_EQ(root, manager->GetFromUniqueIdWin(unique_id_win));
705 } 704 }
706 705
707 } // namespace content 706 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/legacy_render_widget_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698