| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/accessibility/accessibility_extension_api.h" | 10 #include "chrome/browser/accessibility/accessibility_extension_api.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 return 0; | 83 return 0; |
| 84 } | 84 } |
| 85 | 85 |
| 86 #if defined(USE_AURA) | 86 #if defined(USE_AURA) |
| 87 virtual views::NativeWidgetHelperAura* CreateNativeWidgetHelper( | 87 virtual views::NativeWidgetHelperAura* CreateNativeWidgetHelper( |
| 88 views::NativeWidgetAura* native_widget) OVERRIDE { | 88 views::NativeWidgetAura* native_widget) OVERRIDE { |
| 89 return NULL; | 89 return NULL; |
| 90 } | 90 } |
| 91 #endif | 91 #endif |
| 92 | 92 |
| 93 virtual content::WebContents* CreateWebContents( |
| 94 content::BrowserContext* browser_context, |
| 95 content::SiteInstance* site_instance) OVERRIDE { |
| 96 return NULL; |
| 97 } |
| 98 |
| 93 DISALLOW_COPY_AND_ASSIGN(AccessibilityViewsDelegate); | 99 DISALLOW_COPY_AND_ASSIGN(AccessibilityViewsDelegate); |
| 94 }; | 100 }; |
| 95 | 101 |
| 96 class AccessibilityWindowDelegate : public views::WidgetDelegate { | 102 class AccessibilityWindowDelegate : public views::WidgetDelegate { |
| 97 public: | 103 public: |
| 98 explicit AccessibilityWindowDelegate(views::View* contents) | 104 explicit AccessibilityWindowDelegate(views::View* contents) |
| 99 : contents_(contents) { } | 105 : contents_(contents) { } |
| 100 | 106 |
| 101 // Overridden from views::WidgetDelegate: | 107 // Overridden from views::WidgetDelegate: |
| 102 virtual void DeleteDelegate() OVERRIDE { delete this; } | 108 virtual void DeleteDelegate() OVERRIDE { delete this; } |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 340 |
| 335 // Test that we got the event with the expected name and context. | 341 // Test that we got the event with the expected name and context. |
| 336 EXPECT_EQ(1, focus_event_count_); | 342 EXPECT_EQ(1, focus_event_count_); |
| 337 EXPECT_EQ(kButtonNameASCII, last_control_name_); | 343 EXPECT_EQ(kButtonNameASCII, last_control_name_); |
| 338 EXPECT_EQ(kAlertTextASCII, last_control_context_); | 344 EXPECT_EQ(kAlertTextASCII, last_control_context_); |
| 339 | 345 |
| 340 window->CloseNow(); | 346 window->CloseNow(); |
| 341 } | 347 } |
| 342 | 348 |
| 343 #endif // defined(TOOLKIT_VIEWS) | 349 #endif // defined(TOOLKIT_VIEWS) |
| OLD | NEW |