summaryrefslogtreecommitdiffstats
path: root/src_pd
diff options
context:
space:
mode:
authorJohn Hoford <hoford@google.com>2013-01-18 08:59:35 -0800
committerJohn Hoford <hoford@google.com>2013-01-18 15:53:52 -0800
commit5aa08941bda0cfbcfba522c53937dd66867f890d (patch)
tree946a3f70098b010b102007279ad73681fb4cf3d0 /src_pd
parenteebf9e81673150a6c4fec89b64e3cdb595377c83 (diff)
downloadandroid_packages_apps_Gallery2-5aa08941bda0cfbcfba522c53937dd66867f890d.tar.gz
android_packages_apps_Gallery2-5aa08941bda0cfbcfba522c53937dd66867f890d.tar.bz2
android_packages_apps_Gallery2-5aa08941bda0cfbcfba522c53937dd66867f890d.zip
refactor the filter/editor relationship
Change-Id: I1f9a735166c28c65734fbb85201774fb6f664076
Diffstat (limited to 'src_pd')
-rw-r--r--src_pd/com/android/gallery3d/filtershow/editors/EditorManager.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/src_pd/com/android/gallery3d/filtershow/editors/EditorManager.java b/src_pd/com/android/gallery3d/filtershow/editors/EditorManager.java
new file mode 100644
index 000000000..0c73183b2
--- /dev/null
+++ b/src_pd/com/android/gallery3d/filtershow/editors/EditorManager.java
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2012 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.gallery3d.filtershow.editors;
+
+import com.android.gallery3d.filtershow.EditorPlaceHolder;
+import com.android.gallery3d.filtershow.editors.BasicEditor;
+import com.android.gallery3d.filtershow.editors.EditorCurves;
+import com.android.gallery3d.filtershow.editors.EditorZoom;
+
+public class EditorManager {
+
+ public static void addEditors(EditorPlaceHolder editorPlaceHolder) {
+ editorPlaceHolder.addEditor(new EditorZoom());
+ editorPlaceHolder.addEditor(new EditorCurves());
+ editorPlaceHolder.addEditor(new BasicEditor());
+ }
+
+}