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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 // Returns true if the event was actually processed. | 573 // Returns true if the event was actually processed. |
574 bool keyEventDefault(const WebKeyboardEvent&); | 574 bool keyEventDefault(const WebKeyboardEvent&); |
575 | 575 |
576 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior); | 576 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior); |
577 | 577 |
578 // Returns true if the view was scrolled. | 578 // Returns true if the view was scrolled. |
579 bool scrollViewWithKeyboard(int keyCode, int modifiers); | 579 bool scrollViewWithKeyboard(int keyCode, int modifiers); |
580 | 580 |
581 void hideSelectPopup(); | 581 void hideSelectPopup(); |
582 | 582 |
583 // Converts |pos| from window coordinates to contents coordinates and gets | 583 // Converts |pos| from root frame coordinates to contents coordinates and ge
ts |
584 // the HitTestResult for it. | 584 // the HitTestResult for it. |
585 HitTestResult hitTestResultForWindowPos(const IntPoint&); | 585 HitTestResult hitTestResultForRootFramePos(const IntPoint&); |
586 | 586 |
587 // Consolidate some common code between starting a drag over a target and | 587 // Consolidate some common code between starting a drag over a target and |
588 // updating a drag over a target. If we're starting a drag, |isEntering| | 588 // updating a drag over a target. If we're starting a drag, |isEntering| |
589 // should be true. | 589 // should be true. |
590 WebDragOperation dragTargetDragEnterOrOver(const WebPoint& clientPoint, | 590 WebDragOperation dragTargetDragEnterOrOver(const WebPoint& clientPoint, |
591 const WebPoint& screenPoint, | 591 const WebPoint& screenPoint, |
592 DragAction, | 592 DragAction, |
593 int keyModifiers); | 593 int keyModifiers); |
594 | 594 |
595 void configureAutoResizeMode(); | 595 void configureAutoResizeMode(); |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 }; | 776 }; |
777 | 777 |
778 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 778 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
779 // We have no ways to check if the specified WebView is an instance of | 779 // We have no ways to check if the specified WebView is an instance of |
780 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 780 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
781 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 781 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
782 | 782 |
783 } // namespace blink | 783 } // namespace blink |
784 | 784 |
785 #endif | 785 #endif |
OLD | NEW |