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

Unified Diff: samples/todomvc/cc/todomvc_presenter.h

Issue 2035023003: Remove service-compiler related code. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « samples/todomvc/android/compile.sh ('k') | samples/todomvc/cc/todomvc_presenter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/todomvc/cc/todomvc_presenter.h
diff --git a/samples/todomvc/cc/todomvc_presenter.h b/samples/todomvc/cc/todomvc_presenter.h
deleted file mode 100644
index 005659c8d6b1e0137e1ef57e0eacc592314f2a91..0000000000000000000000000000000000000000
--- a/samples/todomvc/cc/todomvc_presenter.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE.md file.
-
-#ifndef TODOMVC_PRESENTER_H_
-#define TODOMVC_PRESENTER_H_
-
-#include <inttypes.h>
-
-#include "todomvc_service.h"
-
-typedef uint16_t event;
-
-const uint8_t TAG_CONS_FST = 0;
-const uint8_t TAG_CONS_SND = 1;
-const uint8_t TAG_CONS_DELETE_EVENT = 2;
-const uint8_t TAG_CONS_COMPLETE_EVENT = 3;
-const uint8_t TAG_CONS_UNCOMPLETE_EVENT = 4;
-
-void VoidCallback(void*);
-
-class TodoMVCPresenter {
- public:
- // Async forwarding of commands to the Dart presenter.
- void createItem(char* title);
- void clearItems();
-
- static void dispatch(event id);
-
- // Synchronize with the Dart presentation model.
- void sync();
-
- protected:
- // Patch apply callbacks.
- virtual void enterPatch() = 0;
- virtual void enterConsFst() = 0;
- virtual void enterConsSnd() = 0;
- virtual void enterConsDeleteEvent() = 0;
- virtual void enterConsCompleteEvent() = 0;
- virtual void enterConsUncompleteEvent() = 0;
- virtual void updateNode(const Node&) = 0;
-
- // Default patch apply procedure.
- virtual void applyPatches(const PatchSet&);
- virtual void applyPatch(const Patch&);
-};
-
-#endif // TODOMVC_PRESENTER_H_
« no previous file with comments | « samples/todomvc/android/compile.sh ('k') | samples/todomvc/cc/todomvc_presenter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698