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

Unified Diff: sky/engine/bindings-dart/core/dart/custom/DartJavaScriptCallFrameCustom.cpp

Issue 875013003: Import Dart bindings as of Blink r188698. This merely copies the files over and does not attach any… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 months 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: sky/engine/bindings-dart/core/dart/custom/DartJavaScriptCallFrameCustom.cpp
diff --git a/sky/engine/platform/graphics/GraphicsContextStateSaver.h b/sky/engine/bindings-dart/core/dart/custom/DartJavaScriptCallFrameCustom.cpp
similarity index 55%
copy from sky/engine/platform/graphics/GraphicsContextStateSaver.h
copy to sky/engine/bindings-dart/core/dart/custom/DartJavaScriptCallFrameCustom.cpp
index 0b35abe6a07ece3552a1802cc000830e45f18cfc..4415de3b0b74aa54afeae9fb6ae9871c508ff14c 100644
--- a/sky/engine/platform/graphics/GraphicsContextStateSaver.h
+++ b/sky/engine/bindings-dart/core/dart/custom/DartJavaScriptCallFrameCustom.cpp
@@ -1,4 +1,5 @@
-// Copyright (C) 2013 Google Inc. All rights reserved.
+// Copyright 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 are
@@ -26,53 +27,68 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#ifndef SKY_ENGINE_PLATFORM_GRAPHICS_GRAPHICSCONTEXTSTATESAVER_H_
-#define SKY_ENGINE_PLATFORM_GRAPHICS_GRAPHICSCONTEXTSTATESAVER_H_
+#include "config.h"
-#include "sky/engine/platform/PlatformExport.h"
-#include "sky/engine/platform/graphics/GraphicsContext.h"
+#include "bindings/core/dart/DartJavaScriptCallFrame.h"
namespace blink {
-class PLATFORM_EXPORT GraphicsContextStateSaver {
- WTF_MAKE_FAST_ALLOCATED;
-public:
- GraphicsContextStateSaver(GraphicsContext& context, bool saveAndRestore = true)
- : m_context(context)
- , m_saveAndRestore(saveAndRestore)
- {
- if (m_saveAndRestore)
- m_context.save();
- }
+namespace DartJavaScriptCallFrameInternal {
- ~GraphicsContextStateSaver()
- {
- if (m_saveAndRestore)
- m_context.restore();
- }
+void evaluateCallback(Dart_NativeArguments args)
+{
+ // FIXME: proper implementation.
+ DART_UNIMPLEMENTED();
+}
- void save()
- {
- ASSERT(!m_saveAndRestore);
- m_context.save();
- m_saveAndRestore = true;
- }
+void evaluateWithExceptionDetailsCallback(Dart_NativeArguments args)
+{
+ // FIXME: proper implementation.
+ DART_UNIMPLEMENTED();
+}
- void restore()
- {
- ASSERT(m_saveAndRestore);
- m_context.restore();
- m_saveAndRestore = false;
- }
+void restartCallback(Dart_NativeArguments args)
+{
+ // FIXME: proper implementation.
+ DART_UNIMPLEMENTED();
+}
- GraphicsContext* context() const { return &m_context; }
- bool saved() const { return m_saveAndRestore; }
+void scopeTypeCallback(Dart_NativeArguments args)
+{
+ // FIXME: proper implementation.
+ DART_UNIMPLEMENTED();
+}
-private:
- GraphicsContext& m_context;
- bool m_saveAndRestore;
-};
+void scopeChainGetter(Dart_NativeArguments args)
+{
+ // FIXME: proper implementation.
+ DART_UNIMPLEMENTED();
+}
-} // namespace blink
+void thisObjectGetter(Dart_NativeArguments args)
+{
+ // FIXME: proper implementation.
+ DART_UNIMPLEMENTED();
+}
-#endif // SKY_ENGINE_PLATFORM_GRAPHICS_GRAPHICSCONTEXTSTATESAVER_H_
+void typeGetter(Dart_NativeArguments args)
+{
+ // FIXME: proper implementation.
+ DART_UNIMPLEMENTED();
+}
+
+void returnValueGetter(Dart_NativeArguments args)
+{
+ // FIXME: proper implementation.
+ DART_UNIMPLEMENTED();
+}
+
+void lengthGetter(Dart_NativeArguments args)
+{
+ // FIXME: proper implementation.
+ DART_UNIMPLEMENTED();
+}
+
+}
+
+}

Powered by Google App Engine
This is Rietveld 408576698