| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |