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 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 IntSize m_maxAutoSize; | 640 IntSize m_maxAutoSize; |
641 | 641 |
642 OwnPtrWillBePersistent<Page> m_page; | 642 OwnPtrWillBePersistent<Page> m_page; |
643 | 643 |
644 // An object that can be used to manipulate m_page->settings() without linki
ng | 644 // An object that can be used to manipulate m_page->settings() without linki
ng |
645 // against WebCore. This is lazily allocated the first time GetWebSettings() | 645 // against WebCore. This is lazily allocated the first time GetWebSettings() |
646 // is called. | 646 // is called. |
647 OwnPtr<WebSettingsImpl> m_webSettings; | 647 OwnPtr<WebSettingsImpl> m_webSettings; |
648 | 648 |
649 // A copy of the web drop data object we received from the browser. | 649 // A copy of the web drop data object we received from the browser. |
650 RefPtrWillBePersistent<DataObject> m_currentDragData; | 650 Persistent<DataObject> m_currentDragData; |
651 | 651 |
652 // The point relative to the client area where the mouse was last pressed | 652 // The point relative to the client area where the mouse was last pressed |
653 // down. This is used by the drag client to determine what was under the | 653 // down. This is used by the drag client to determine what was under the |
654 // mouse when the drag was initiated. We need to track this here in | 654 // mouse when the drag was initiated. We need to track this here in |
655 // WebViewImpl since DragClient::startDrag does not pass the position the | 655 // WebViewImpl since DragClient::startDrag does not pass the position the |
656 // mouse was at when the drag was initiated, only the current point, which | 656 // mouse was at when the drag was initiated, only the current point, which |
657 // can be misleading as it is usually not over the element the user actually | 657 // can be misleading as it is usually not over the element the user actually |
658 // dragged by the time a drag is initiated. | 658 // dragged by the time a drag is initiated. |
659 WebPoint m_lastMouseDownPoint; | 659 WebPoint m_lastMouseDownPoint; |
660 | 660 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 }; | 765 }; |
766 | 766 |
767 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 767 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
768 // We have no ways to check if the specified WebView is an instance of | 768 // We have no ways to check if the specified WebView is an instance of |
769 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 769 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
770 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 770 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
771 | 771 |
772 } // namespace blink | 772 } // namespace blink |
773 | 773 |
774 #endif | 774 #endif |
OLD | NEW |