OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/extensions/extension_accessibility_api.h" | 10 #include "chrome/browser/extensions/extension_accessibility_api.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 public: | 28 public: |
29 AccessibilityViewsDelegate() {} | 29 AccessibilityViewsDelegate() {} |
30 virtual ~AccessibilityViewsDelegate() {} | 30 virtual ~AccessibilityViewsDelegate() {} |
31 | 31 |
32 // Overridden from views::ViewsDelegate: | 32 // Overridden from views::ViewsDelegate: |
33 virtual ui::Clipboard* GetClipboard() const OVERRIDE { return NULL; } | 33 virtual ui::Clipboard* GetClipboard() const OVERRIDE { return NULL; } |
34 virtual views::View* GetDefaultParentView() OVERRIDE { return NULL; } | 34 virtual views::View* GetDefaultParentView() OVERRIDE { return NULL; } |
35 virtual void SaveWindowPlacement(const views::Widget* window, | 35 virtual void SaveWindowPlacement(const views::Widget* window, |
36 const std::wstring& window_name, | 36 const std::wstring& window_name, |
37 const gfx::Rect& bounds, | 37 const gfx::Rect& bounds, |
38 ui::WindowShowState show_state) OVERRIDE { | 38 bool maximized) OVERRIDE { |
39 } | 39 } |
40 virtual bool GetSavedWindowPlacement( | 40 virtual bool GetSavedWindowBounds(const std::wstring& window_name, |
41 const std::wstring& window_name, | 41 gfx::Rect* bounds) const OVERRIDE { |
42 gfx::Rect* bounds, | 42 return false; |
43 ui::WindowShowState* show_state) const OVERRIDE { | 43 } |
| 44 virtual bool GetSavedMaximizedState(const std::wstring& window_name, |
| 45 bool* maximized) const OVERRIDE { |
44 return false; | 46 return false; |
45 } | 47 } |
46 virtual void NotifyAccessibilityEvent( | 48 virtual void NotifyAccessibilityEvent( |
47 views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE { | 49 views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE { |
48 AccessibilityEventRouterViews::GetInstance()->HandleAccessibilityEvent( | 50 AccessibilityEventRouterViews::GetInstance()->HandleAccessibilityEvent( |
49 view, event_type); | 51 view, event_type); |
50 } | 52 } |
51 virtual void NotifyMenuItemFocused( | 53 virtual void NotifyMenuItemFocused( |
52 const std::wstring& menu_name, | 54 const std::wstring& menu_name, |
53 const std::wstring& menu_item_name, | 55 const std::wstring& menu_item_name, |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 EXPECT_EQ(2, focus_event_count_); | 184 EXPECT_EQ(2, focus_event_count_); |
183 EXPECT_EQ(kButton3NewASCII, last_control_name_); | 185 EXPECT_EQ(kButton3NewASCII, last_control_name_); |
184 | 186 |
185 // Advance to button 1 and check the notification. | 187 // Advance to button 1 and check the notification. |
186 focus_manager->AdvanceFocus(false); | 188 focus_manager->AdvanceFocus(false); |
187 EXPECT_EQ(3, focus_event_count_); | 189 EXPECT_EQ(3, focus_event_count_); |
188 EXPECT_EQ(kButton1ASCII, last_control_name_); | 190 EXPECT_EQ(kButton1ASCII, last_control_name_); |
189 } | 191 } |
190 | 192 |
191 #endif // defined(TOOLKIT_VIEWS) | 193 #endif // defined(TOOLKIT_VIEWS) |
OLD | NEW |