Index: Source/bindings/core/dart/DartScriptDebugListener.h |
diff --git a/Source/modules/accessibility/AXListBoxOption.h b/Source/bindings/core/dart/DartScriptDebugListener.h |
similarity index 55% |
copy from Source/modules/accessibility/AXListBoxOption.h |
copy to Source/bindings/core/dart/DartScriptDebugListener.h |
index 74db3c20c7710d40abbce61073091fa32d372537..efc1fcb7e91c30c4127edb1e79d24e7c0b326101 100644 |
--- a/Source/modules/accessibility/AXListBoxOption.h |
+++ b/Source/bindings/core/dart/DartScriptDebugListener.h |
@@ -1,5 +1,6 @@ |
/* |
* Copyright (C) 2008 Apple Inc. All rights reserved. |
+ * Copyright (C) 2014 Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
@@ -26,49 +27,65 @@ |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef AXListBoxOption_h |
-#define AXListBoxOption_h |
+#ifndef DartScriptDebugListener_h |
+#define DartScriptDebugListener_h |
-#include "core/html/HTMLElement.h" |
-#include "modules/accessibility/AXLayoutObject.h" |
-#include "wtf/Forward.h" |
-namespace blink { |
+#include "bindings/common/ScriptState.h" |
+#include "core/inspector/ScriptDebugListener.h" |
-class AXObjectCacheImpl; |
-class HTMLSelectElement; |
+#include "wtf/Forward.h" |
+#include "wtf/Vector.h" |
+#include "wtf/text/WTFString.h" |
+#include <dart_tools_api.h> |
-class AXListBoxOption final : public AXLayoutObject { |
+namespace blink { |
-private: |
- AXListBoxOption(LayoutObject*, AXObjectCacheImpl&); |
+class ExecutionContext; |
+class ScriptValue; |
+class DartScriptDebugListener { |
public: |
- static PassRefPtrWillBeRawPtr<AXListBoxOption> create(LayoutObject*, AXObjectCacheImpl&); |
- ~AXListBoxOption() override; |
+ class Script { |
+ public: |
+ Script() |
+ : startLine(0) |
+ , startColumn(0) |
+ , endLine(0) |
+ , endColumn(0) |
+ , isContentScript(false) |
+ , libraryId(-1) |
+ { |
+ } |
- bool isAXListBoxOption() const override { return true; } |
- AccessibilityRole determineAccessibilityRole() final; |
- bool isSelected() const override; |
- bool isEnabled() const override; |
- bool isSelectedOptionActive() const override; |
- void setSelected(bool) override; |
- bool canSetSelectedAttribute() const override; |
- String stringValue() const override; |
- String deprecatedTitle(TextUnderElementMode) const override { return String(); } |
+ String url; |
+ String sourceURL; |
+ String sourceMappingURL; |
+ String source; |
+ int startLine; |
+ int startColumn; |
+ int endLine; |
+ int endColumn; |
+ bool isContentScript; |
+ String language; |
+ int libraryId; |
+ }; |
-private: |
- bool canHaveChildren() const override { return false; } |
- bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; |
+ enum SkipPauseRequest { |
+ NoSkip, |
+ Continue, |
+ StepInto, |
+ StepOut |
+ }; |
- HTMLSelectElement* listBoxOptionParentNode() const; |
- int listBoxOptionIndex() const; |
- AXObject* listBoxOptionAXObject(HTMLElement*) const; |
- bool isParentPresentationalRole() const; |
-}; |
+ virtual ~DartScriptDebugListener() { } |
-DEFINE_AX_OBJECT_TYPE_CASTS(AXListBoxOption, isAXListBoxOption()); |
+ virtual void didParseSource(const String& scriptId, const Script&, CompileResult) = 0; |
+ virtual SkipPauseRequest didPause(ScriptState*, Dart_StackTrace callFrames, const ScriptValue& exception, const Vector<String>& hitBreakpoints) = 0; |
+ virtual void didContinue() = 0; |
+}; |
} // namespace blink |
-#endif // AXListBoxOption_h |
+ |
+#endif // DartScriptDebugListener_h |