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

Side by Side Diff: Source/web/ChromeClientImpl.h

Issue 16507017: Initial touch-action main thread implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Merge with trunk (no changes) Created 7 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 virtual void print(WebCore::Frame*); 132 virtual void print(WebCore::Frame*);
133 virtual void annotatedRegionsChanged(); 133 virtual void annotatedRegionsChanged();
134 virtual bool paintCustomOverhangArea(WebCore::GraphicsContext*, const WebCor e::IntRect&, const WebCore::IntRect&, const WebCore::IntRect&); 134 virtual bool paintCustomOverhangArea(WebCore::GraphicsContext*, const WebCor e::IntRect&, const WebCore::IntRect&, const WebCore::IntRect&);
135 virtual PassOwnPtr<WebCore::ColorChooser> createColorChooser(WebCore::ColorC hooserClient*, const WebCore::Color&) OVERRIDE; 135 virtual PassOwnPtr<WebCore::ColorChooser> createColorChooser(WebCore::ColorC hooserClient*, const WebCore::Color&) OVERRIDE;
136 virtual PassRefPtr<WebCore::DateTimeChooser> openDateTimeChooser(WebCore::Da teTimeChooserClient*, const WebCore::DateTimeChooserParameters&) OVERRIDE; 136 virtual PassRefPtr<WebCore::DateTimeChooser> openDateTimeChooser(WebCore::Da teTimeChooserClient*, const WebCore::DateTimeChooserParameters&) OVERRIDE;
137 virtual void runOpenPanel(WebCore::Frame*, PassRefPtr<WebCore::FileChooser>) ; 137 virtual void runOpenPanel(WebCore::Frame*, PassRefPtr<WebCore::FileChooser>) ;
138 virtual void enumerateChosenDirectory(WebCore::FileChooser*); 138 virtual void enumerateChosenDirectory(WebCore::FileChooser*);
139 virtual void setCursor(const WebCore::Cursor&); 139 virtual void setCursor(const WebCore::Cursor&);
140 virtual void formStateDidChange(const WebCore::Node*); 140 virtual void formStateDidChange(const WebCore::Node*);
141 virtual void needTouchEvents(bool needTouchEvents) OVERRIDE; 141 virtual void needTouchEvents(bool needTouchEvents) OVERRIDE;
142 virtual void setTouchAction(WebCore::TouchAction) OVERRIDE;
142 143
143 virtual WebCore::GraphicsLayerFactory* graphicsLayerFactory() const OVERRIDE ; 144 virtual WebCore::GraphicsLayerFactory* graphicsLayerFactory() const OVERRIDE ;
144 145
145 // Pass 0 as the GraphicsLayer to detatch the root layer. 146 // Pass 0 as the GraphicsLayer to detatch the root layer.
146 virtual void attachRootGraphicsLayer(WebCore::Frame*, WebCore::GraphicsLayer *); 147 virtual void attachRootGraphicsLayer(WebCore::Frame*, WebCore::GraphicsLayer *);
147 148
148 // Sets a flag to specify that the view needs to be updated, so we need 149 // Sets a flag to specify that the view needs to be updated, so we need
149 // to do an eager layout before the drawing. 150 // to do an eager layout before the drawing.
150 virtual void scheduleCompositingLayerFlush(); 151 virtual void scheduleCompositingLayerFlush();
151 152
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 228
228 inline ChromeClientImpl* toChromeClientImpl(WebCore::ChromeClient& client) 229 inline ChromeClientImpl* toChromeClientImpl(WebCore::ChromeClient& client)
229 { 230 {
230 ASSERT_WITH_SECURITY_IMPLICATION(client.isChromeClientImpl()); 231 ASSERT_WITH_SECURITY_IMPLICATION(client.isChromeClientImpl());
231 return static_cast<ChromeClientImpl*>(&client); 232 return static_cast<ChromeClientImpl*>(&client);
232 } 233 }
233 234
234 } // namespace blink 235 } // namespace blink
235 236
236 #endif 237 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698