Index: chrome/browser/ui/touch_web_contents_observer_win.h |
=================================================================== |
--- chrome/browser/ui/touch_web_contents_observer_win.h (revision 0) |
+++ chrome/browser/ui/touch_web_contents_observer_win.h (revision 0) |
@@ -0,0 +1,33 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_TOUCH_WEB_CONTENTS_OBSERVER_WIN_H_ |
+#define CHROME_BROWSER_UI_TOUCH_WEB_CONTENTS_OBSERVER_WIN_H_ |
+ |
+#include "content/public/browser/web_contents_observer.h" |
+#include "content/public/browser/web_contents_user_data.h" |
+ |
+// A web contents observer that's used to provide windows touch functionality |
+// for touch gestures occurring on WebContents created in the renderer, |
+// extensions and apps |
+class TouchWebContentsObserver |
+ : public content::WebContentsObserver, |
+ public content::WebContentsUserData<TouchWebContentsObserver> { |
+ public: |
+ virtual ~TouchWebContentsObserver(); |
+ |
+ private: |
+ explicit TouchWebContentsObserver(content::WebContents* web_contents); |
+ friend class content::WebContentsUserData<TouchWebContentsObserver>; |
+ |
+ // content::WebContentsObserver overrides. |
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
+ |
+ void OnFocusedNodeTouched(bool editable); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(TouchWebContentsObserver); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_TOUCH_WEB_CONTENTS_OBSERVER_WIN_H_ |
+ |
Property changes on: chrome\browser\ui\touch_web_contents_observer_win.h |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |