OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_TOUCH_WEB_CONTENTS_OBSERVER_WIN_H_ |
| 6 #define CHROME_BROWSER_UI_TOUCH_WEB_CONTENTS_OBSERVER_WIN_H_ |
| 7 |
| 8 #include "content/public/browser/web_contents_observer.h" |
| 9 #include "content/public/browser/web_contents_user_data.h" |
| 10 |
| 11 // A web contents observer that's used to provide windows touch functionality |
| 12 // for touch gestures occurring on WebContents created in the renderer, |
| 13 // extensions and apps |
| 14 class TouchWebContentsObserver |
| 15 : public content::WebContentsObserver, |
| 16 public content::WebContentsUserData<TouchWebContentsObserver> { |
| 17 public: |
| 18 virtual ~TouchWebContentsObserver(); |
| 19 |
| 20 private: |
| 21 explicit TouchWebContentsObserver(content::WebContents* web_contents); |
| 22 friend class content::WebContentsUserData<TouchWebContentsObserver>; |
| 23 |
| 24 // content::WebContentsObserver overrides. |
| 25 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 26 |
| 27 void OnFocusedNodeTouched(bool editable); |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(TouchWebContentsObserver); |
| 30 }; |
| 31 |
| 32 #endif // CHROME_BROWSER_UI_TOUCH_WEB_CONTENTS_OBSERVER_WIN_H_ |
| 33 |
OLD | NEW |