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

Side by Side Diff: Source/core/page/ChromeClient.h

Issue 724673003: Don't make :hover sticky on tap on sites that set a mobile viewport set (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Refactored logic and corrected viewport checking Created 6 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 unified diff | Download patch
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 virtual void didChangeValueInTextField(HTMLFormControlElement&) { } 222 virtual void didChangeValueInTextField(HTMLFormControlElement&) { }
223 virtual void didEndEditingOnTextField(HTMLInputElement&) { } 223 virtual void didEndEditingOnTextField(HTMLInputElement&) { }
224 virtual void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent &) { } 224 virtual void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent &) { }
225 225
226 // Input mehtod editor related functions. 226 // Input mehtod editor related functions.
227 virtual void didCancelCompositionOnSelectionChange() { } 227 virtual void didCancelCompositionOnSelectionChange() { }
228 virtual void willSetInputMethodState() { } 228 virtual void willSetInputMethodState() { }
229 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } 229 virtual void didUpdateTextOfFocusedElementByNonUserInput() { }
230 virtual void showImeIfNeeded() { } 230 virtual void showImeIfNeeded() { }
231 231
232 // Exposes WebViewImpl::shouldDisableDesktopWorkarounds() to blink core
233 virtual bool shouldDisableDesktopWorkarounds()
234 {
235 // assuming document is considered optimized for mobile devices, but thi s is implemented in WebViewImpl
236 return true;
237 }
238
232 protected: 239 protected:
233 virtual ~ChromeClient() { } 240 virtual ~ChromeClient() { }
234 }; 241 };
235 242
236 } // namespace blink 243 } // namespace blink
237 244
238 #endif // ChromeClient_h 245 #endif // ChromeClient_h
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698