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

Side by Side Diff: webkit/tools/test_shell/accessibility_controller.h

Issue 5631002: wstrings: convert CppVariant and CppBoundClass to not use wstring (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 #ifndef WEBKIT_TOOLS_TEST_SHELL_ACCESSIBILITY_CONTROLLER_H_ 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_ACCESSIBILITY_CONTROLLER_H_
6 #define WEBKIT_TOOLS_TEST_SHELL_ACCESSIBILITY_CONTROLLER_H_ 6 #define WEBKIT_TOOLS_TEST_SHELL_ACCESSIBILITY_CONTROLLER_H_
7 7
8 #include "webkit/glue/cpp_bound_class.h" 8 #include "webkit/glue/cpp_bound_class.h"
9 #include "webkit/tools/test_shell/accessibility_ui_element.h" 9 #include "webkit/tools/test_shell/accessibility_ui_element.h"
10 10
11 namespace WebKit { 11 namespace WebKit {
12 class WebAccessibilityObject; 12 class WebAccessibilityObject;
13 class WebFrame; 13 class WebFrame;
14 } 14 }
15 15
16 class AccessibilityUIElement; 16 class AccessibilityUIElement;
17 class AccessibilityUIElementList; 17 class AccessibilityUIElementList;
18 class TestShell; 18 class TestShell;
19 19
20 class AccessibilityController : public CppBoundClass { 20 class AccessibilityController : public CppBoundClass {
21 public: 21 public:
22 explicit AccessibilityController(TestShell* shell); 22 explicit AccessibilityController(TestShell* shell);
23 23
24 // shadow to include accessibility initialization. 24 // shadow to include accessibility initialization.
25 void BindToJavascript( 25 void BindToJavascript(WebKit::WebFrame* frame, const std::string& classname);
26 WebKit::WebFrame* frame, const std::wstring& classname);
27 void Reset(); 26 void Reset();
28 27
29 void SetFocusedElement(const WebKit::WebAccessibilityObject& focused_element); 28 void SetFocusedElement(const WebKit::WebAccessibilityObject& focused_element);
30 AccessibilityUIElement* GetFocusedElement(); 29 AccessibilityUIElement* GetFocusedElement();
31 AccessibilityUIElement* GetRootElement(); 30 AccessibilityUIElement* GetRootElement();
32 31
33 private: 32 private:
34 // Bound methods and properties 33 // Bound methods and properties
35 void LogFocusEventsCallback(const CppArgumentList& args, CppVariant* result); 34 void LogFocusEventsCallback(const CppArgumentList& args, CppVariant* result);
36 void LogScrollingStartEventsCallback( 35 void LogScrollingStartEventsCallback(
37 const CppArgumentList& args, CppVariant* result); 36 const CppArgumentList& args, CppVariant* result);
38 void FallbackCallback(const CppArgumentList& args, CppVariant* result); 37 void FallbackCallback(const CppArgumentList& args, CppVariant* result);
39 38
40 void FocusedElementGetterCallback(CppVariant* result); 39 void FocusedElementGetterCallback(CppVariant* result);
41 void RootElementGetterCallback(CppVariant* result); 40 void RootElementGetterCallback(CppVariant* result);
42 41
43 WebKit::WebAccessibilityObject focused_element_; 42 WebKit::WebAccessibilityObject focused_element_;
44 WebKit::WebAccessibilityObject root_element_; 43 WebKit::WebAccessibilityObject root_element_;
45 44
46 AccessibilityUIElementList elements_; 45 AccessibilityUIElementList elements_;
47 46
48 TestShell* shell_; 47 TestShell* shell_;
49 }; 48 };
50 49
51 #endif // WEBKIT_TOOLS_TEST_SHELL_ACCESSIBILITY_CONTROLLER_H_ 50 #endif // WEBKIT_TOOLS_TEST_SHELL_ACCESSIBILITY_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698