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

Unified Diff: samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/LeftPresenter.java

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
Index: samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/LeftPresenter.java
diff --git a/samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/LeftPresenter.java b/samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/LeftPresenter.java
deleted file mode 100644
index 3035cbd6d3bd8218ecd1cb5d9d58dacefb90f6e0..0000000000000000000000000000000000000000
--- a/samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/LeftPresenter.java
+++ /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.
-
-package com.google.dartino.githubsample;
-
-import android.app.Activity;
-
-import com.google.dartino.immisamples.Drawer;
-import com.google.dartino.immisamples.Menu;
-
-import immi.AnyNode;
-import immi.AnyNodePatch;
-import immi.MenuNode;
-import immi.MenuPatch;
-
-public final class LeftPresenter extends Drawer.PanePresenter {
-
- LeftPresenter(Activity activity) {
- this.menu = new Menu(
- activity,
- android.R.layout.simple_list_item_activated_1,
- android.R.id.text1);
-
- fragment = (NavigationDrawerFragment)
- activity.getFragmentManager().findFragmentById(R.id.navigation_drawer);
-
- fragment.setupMenu(menu);
- }
-
- @Override
- public Drawer.PaneFragment getPaneFragment() {
- return fragment;
- }
-
- @Override
- public void present(AnyNode node) {
- menu.present(node.as(MenuNode.class));
- }
-
- @Override
- public void patch(AnyNodePatch patch) {
- menu.patch(patch.as(MenuPatch.class));
- }
-
- private NavigationDrawerFragment fragment;
- private Menu menu;
-}

Powered by Google App Engine
This is Rietveld 408576698