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

Unified Diff: Source/bindings/core/dart/DartScriptDebugListener.h

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « Source/bindings/core/dart/DartPersistentValue.cpp ('k') | Source/bindings/core/dart/DartScriptDebugServer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698