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

Side by Side Diff: sky/engine/web/WebViewImpl.h

Issue 758843004: Delete most of rendering/compositing. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #include "sky/engine/web/PageWidgetDelegate.h" 49 #include "sky/engine/web/PageWidgetDelegate.h"
50 #include "sky/engine/web/SpellCheckerClientImpl.h" 50 #include "sky/engine/web/SpellCheckerClientImpl.h"
51 #include "sky/engine/wtf/OwnPtr.h" 51 #include "sky/engine/wtf/OwnPtr.h"
52 #include "sky/engine/wtf/RefCounted.h" 52 #include "sky/engine/wtf/RefCounted.h"
53 #include "sky/engine/wtf/Vector.h" 53 #include "sky/engine/wtf/Vector.h"
54 54
55 namespace blink { 55 namespace blink {
56 56
57 class Frame; 57 class Frame;
58 class LinkHighlight; 58 class LinkHighlight;
59 class RenderLayerCompositor;
60 class UserGestureToken; 59 class UserGestureToken;
61 class WebActiveGestureAnimation; 60 class WebActiveGestureAnimation;
62 class WebLocalFrameImpl; 61 class WebLocalFrameImpl;
63 class WebImage; 62 class WebImage;
64 class WebSettingsImpl; 63 class WebSettingsImpl;
65 64
66 class WebViewImpl final : public WebView 65 class WebViewImpl final : public WebView
67 , public RefCounted<WebViewImpl> 66 , public RefCounted<WebViewImpl>
68 , public WebGestureCurveTarget 67 , public WebGestureCurveTarget
69 , public PageWidgetEventHandler { 68 , public PageWidgetEventHandler {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 168
170 HitTestResult coreHitTestResultAt(const WebPoint&); 169 HitTestResult coreHitTestResultAt(const WebPoint&);
171 void suppressInvalidations(bool enable); 170 void suppressInvalidations(bool enable);
172 void invalidateRect(const IntRect&); 171 void invalidateRect(const IntRect&);
173 172
174 void setIgnoreInputEvents(bool newValue); 173 void setIgnoreInputEvents(bool newValue);
175 void setBackgroundColorOverride(WebColor); 174 void setBackgroundColorOverride(WebColor);
176 175
177 Color baseBackgroundColor() const { return m_baseBackgroundColor; } 176 Color baseBackgroundColor() const { return m_baseBackgroundColor; }
178 177
179 void setOverlayLayer(GraphicsLayer*);
180
181 const WebPoint& lastMouseDownPoint() const 178 const WebPoint& lastMouseDownPoint() const
182 { 179 {
183 return m_lastMouseDownPoint; 180 return m_lastMouseDownPoint;
184 } 181 }
185 182
186 LocalFrame* focusedCoreFrame() const; 183 LocalFrame* focusedCoreFrame() const;
187 184
188 // Returns the currently focused Element or null if no element has focus. 185 // Returns the currently focused Element or null if no element has focus.
189 Element* focusedElement() const; 186 Element* focusedElement() const;
190 187
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // Returns the input event we're currently processing. This is used in some 238 // Returns the input event we're currently processing. This is used in some
242 // cases where the WebCore DOM event doesn't have the information we need. 239 // cases where the WebCore DOM event doesn't have the information we need.
243 static const WebInputEvent* currentInputEvent() 240 static const WebInputEvent* currentInputEvent()
244 { 241 {
245 return m_currentInputEvent; 242 return m_currentInputEvent;
246 } 243 }
247 244
248 GraphicsLayer* rootGraphicsLayer(); 245 GraphicsLayer* rootGraphicsLayer();
249 void setRootGraphicsLayer(GraphicsLayer*); 246 void setRootGraphicsLayer(GraphicsLayer*);
250 GraphicsLayerFactory* graphicsLayerFactory() const; 247 GraphicsLayerFactory* graphicsLayerFactory() const;
251 RenderLayerCompositor* compositor() const;
252 void scheduleAnimation(); 248 void scheduleAnimation();
253 249
254 virtual void setVisibilityState(WebPageVisibilityState, bool) override; 250 virtual void setVisibilityState(WebPageVisibilityState, bool) override;
255 251
256 // Returns true if the event leads to scrolling. 252 // Returns true if the event leads to scrolling.
257 static bool mapKeyCodeForScroll( 253 static bool mapKeyCodeForScroll(
258 int keyCode, 254 int keyCode,
259 ScrollDirection*, 255 ScrollDirection*,
260 ScrollGranularity*); 256 ScrollGranularity*);
261 257
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 bool m_userGestureObserved; 426 bool m_userGestureObserved;
431 }; 427 };
432 428
433 // We have no ways to check if the specified WebView is an instance of 429 // We have no ways to check if the specified WebView is an instance of
434 // WebViewImpl because WebViewImpl is the only implementation of WebView. 430 // WebViewImpl because WebViewImpl is the only implementation of WebView.
435 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 431 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
436 432
437 } // namespace blink 433 } // namespace blink
438 434
439 #endif // SKY_ENGINE_WEB_WEBVIEWIMPL_H_ 435 #endif // SKY_ENGINE_WEB_WEBVIEWIMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698