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

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

Issue 873963003: Remove more mouse-specific code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Build fixes Created 5 years, 11 months 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 | « sky/engine/web/ChromeClientImpl.cpp ('k') | sky/engine/web/WebViewImpl.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) 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual void close() override; 64 virtual void close() override;
65 virtual WebSize size() override; 65 virtual WebSize size() override;
66 66
67 virtual void resize(const WebSize&) override; 67 virtual void resize(const WebSize&) override;
68 68
69 virtual void beginFrame(const WebBeginFrameArgs&) override; 69 virtual void beginFrame(const WebBeginFrameArgs&) override;
70 70
71 virtual void layout() override; 71 virtual void layout() override;
72 virtual void paint(WebCanvas*, const WebRect&) override; 72 virtual void paint(WebCanvas*, const WebRect&) override;
73 virtual bool handleInputEvent(const WebInputEvent&) override; 73 virtual bool handleInputEvent(const WebInputEvent&) override;
74 virtual void mouseCaptureLost() override;
75 virtual void setFocus(bool enable) override; 74 virtual void setFocus(bool enable) override;
76 virtual bool setComposition( 75 virtual bool setComposition(
77 const WebString& text, 76 const WebString& text,
78 const WebVector<WebCompositionUnderline>& underlines, 77 const WebVector<WebCompositionUnderline>& underlines,
79 int selectionStart, 78 int selectionStart,
80 int selectionEnd) override; 79 int selectionEnd) override;
81 virtual bool confirmComposition() override; 80 virtual bool confirmComposition() override;
82 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) override; 81 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) override;
83 virtual bool confirmComposition(const WebString& text) override; 82 virtual bool confirmComposition(const WebString& text) override;
84 virtual bool compositionRange(size_t* location, size_t* length) override; 83 virtual bool compositionRange(size_t* location, size_t* length) override;
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // associated WM_CHAR event if the keydown was handled. We emulate 260 // associated WM_CHAR event if the keydown was handled. We emulate
262 // this behavior by setting this flag if the keyDown was handled. 261 // this behavior by setting this flag if the keyDown was handled.
263 bool m_suppressNextKeypressEvent; 262 bool m_suppressNextKeypressEvent;
264 263
265 // Represents whether or not this object should process incoming IME events. 264 // Represents whether or not this object should process incoming IME events.
266 bool m_imeAcceptEvents; 265 bool m_imeAcceptEvents;
267 266
268 // Whether the webview is rendering transparently. 267 // Whether the webview is rendering transparently.
269 bool m_isTransparent; 268 bool m_isTransparent;
270 269
271 // If set, the (plugin) node which has mouse capture.
272 RefPtr<Node> m_mouseCaptureNode;
273
274 IntRect m_rootLayerScrollDamage; 270 IntRect m_rootLayerScrollDamage;
275 WebLayer* m_rootLayer; 271 WebLayer* m_rootLayer;
276 bool m_matchesHeuristicsForGpuRasterization; 272 bool m_matchesHeuristicsForGpuRasterization;
277 // If true, the graphics context is being restored. 273 // If true, the graphics context is being restored.
278 bool m_recreatingGraphicsContext; 274 bool m_recreatingGraphicsContext;
279 static const WebInputEvent* m_currentInputEvent; 275 static const WebInputEvent* m_currentInputEvent;
280 276
281 WebPoint m_positionOnFlingStart; 277 WebPoint m_positionOnFlingStart;
282 WebPoint m_globalPositionOnFlingStart; 278 WebPoint m_globalPositionOnFlingStart;
283 int m_flingModifier; 279 int m_flingModifier;
284 bool m_flingSourceDevice; 280 bool m_flingSourceDevice;
285 281
286 bool m_showPaintRects; 282 bool m_showPaintRects;
287 bool m_showDebugBorders; 283 bool m_showDebugBorders;
288 bool m_showScrollBottleneckRects; 284 bool m_showScrollBottleneckRects;
289 WebColor m_baseBackgroundColor; 285 WebColor m_baseBackgroundColor;
290 WebColor m_backgroundColorOverride; 286 WebColor m_backgroundColorOverride;
291 }; 287 };
292 288
293 // We have no ways to check if the specified WebView is an instance of 289 // We have no ways to check if the specified WebView is an instance of
294 // WebViewImpl because WebViewImpl is the only implementation of WebView. 290 // WebViewImpl because WebViewImpl is the only implementation of WebView.
295 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 291 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
296 292
297 } // namespace blink 293 } // namespace blink
298 294
299 #endif // SKY_ENGINE_WEB_WEBVIEWIMPL_H_ 295 #endif // SKY_ENGINE_WEB_WEBVIEWIMPL_H_
OLDNEW
« no previous file with comments | « sky/engine/web/ChromeClientImpl.cpp ('k') | sky/engine/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698