Revert r3463, because it broke Linux.
Review URL: https://codereview.appspot.com/5876056
git-svn-id: http://skia.googlecode.com/svn/trunk@3465 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/unix_test_app/DrawBlueSample.cpp b/unix_test_app/DrawBlueSample.cpp
new file mode 100644
index 0000000..83e6fd5
--- /dev/null
+++ b/unix_test_app/DrawBlueSample.cpp
@@ -0,0 +1,34 @@
+
+/*
+ * Copyright 2011 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+#include "SampleCode.h"
+#include "SkCanvas.h"
+#include "SkColor.h"
+#include "SkEvent.h"
+#include "SkView.h"
+
+class DrawBlue : public SkView {
+
+public:
+ DrawBlue() {}
+protected:
+ virtual void onDraw(SkCanvas* canvas) {
+ canvas->drawColor(SK_ColorBLUE);
+ }
+ virtual bool onQuery(SkEvent* evt) {
+ if (SampleCode::TitleQ(*evt)) {
+ SampleCode::TitleR(evt, "DrawBlue");
+ return true;
+ }
+ return this->INHERITED::onQuery(evt);
+ }
+private:
+ typedef SkView INHERITED;
+};
+
+static SkView* MyFactory() { return new DrawBlue; }
+static SkViewRegister reg(MyFactory);