pass modifier keys to click events (e.g. control | shift etc.)
Review URL: https://codereview.appspot.com/7062054
git-svn-id: http://skia.googlecode.com/svn/trunk@7082 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SampleCode.h b/samplecode/SampleCode.h
index 8bd5fbd..b526787 100644
--- a/samplecode/SampleCode.h
+++ b/samplecode/SampleCode.h
@@ -107,8 +107,11 @@
class SampleView : public SkView {
public:
- SampleView() : fPipeState(SkOSMenu::kOffState),
- fBGColor(SK_ColorWHITE), fRepeatCount(1) {
+ SampleView()
+ : fPipeState(SkOSMenu::kOffState)
+ , fBGColor(SK_ColorWHITE)
+ , fRepeatCount(1)
+ , fDebugHitTest(false) {
}
void setBGColor(SkColor color) { fBGColor = color; }
@@ -142,6 +145,9 @@
private:
int fRepeatCount;
+ bool fDebugHitTest;
+ SkIPoint fDebugHitTestLoc;
+
typedef SkView INHERITED;
};