Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(626)

Unified Diff: chrome/browser/ui/touch_web_contents_observer_win.h

Issue 89873002: Ensure that the OSK on Windows 8 shows up when we tap on an editable field in any WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698