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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // Returns the page object associated with this view. This may be null when | 306 // Returns the page object associated with this view. This may be null when |
307 // the page is shutting down, but will be valid at all other times. | 307 // the page is shutting down, but will be valid at all other times. |
308 WebCore::Page* page() const | 308 WebCore::Page* page() const |
309 { | 309 { |
310 return m_page.get(); | 310 return m_page.get(); |
311 } | 311 } |
312 | 312 |
313 // Returns the main frame associated with this view. This may be null when | 313 // Returns the main frame associated with this view. This may be null when |
314 // the page is shutting down, but will be valid at all other times. | 314 // the page is shutting down, but will be valid at all other times. |
315 WebLocalFrameImpl* mainFrameImpl(); | 315 WebLocalFrameImpl* mainFrameImpl(); |
| 316 WebLocalFrameImpl* localRootFrame(); |
316 | 317 |
317 // Event related methods: | 318 // Event related methods: |
318 void mouseContextMenu(const WebMouseEvent&); | 319 void mouseContextMenu(const WebMouseEvent&); |
319 void mouseDoubleClick(const WebMouseEvent&); | 320 void mouseDoubleClick(const WebMouseEvent&); |
320 | 321 |
321 bool detectContentOnTouch(const WebPoint&); | 322 bool detectContentOnTouch(const WebPoint&); |
322 bool startPageScaleAnimation(const WebCore::IntPoint& targetPosition, bool u
seAnchor, float newScale, double durationInSeconds); | 323 bool startPageScaleAnimation(const WebCore::IntPoint& targetPosition, bool u
seAnchor, float newScale, double durationInSeconds); |
323 | 324 |
324 void hasTouchEventHandlers(bool); | 325 void hasTouchEventHandlers(bool); |
325 | 326 |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 bool m_userGestureObserved; | 714 bool m_userGestureObserved; |
714 }; | 715 }; |
715 | 716 |
716 // We have no ways to check if the specified WebView is an instance of | 717 // We have no ways to check if the specified WebView is an instance of |
717 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 718 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
718 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 719 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
719 | 720 |
720 } // namespace blink | 721 } // namespace blink |
721 | 722 |
722 #endif | 723 #endif |
OLD | NEW |