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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 | 367 |
368 void postLayoutResize(WebLocalFrameImpl* webframe); | 368 void postLayoutResize(WebLocalFrameImpl* webframe); |
369 | 369 |
370 // Indicates two things: | 370 // Indicates two things: |
371 // 1) This view may have a new layout now. | 371 // 1) This view may have a new layout now. |
372 // 2) Calling updateAllLifecyclePhases() is a no-op. | 372 // 2) Calling updateAllLifecyclePhases() is a no-op. |
373 // After calling WebWidget::updateAllLifecyclePhases(), expect to get this n
otification | 373 // After calling WebWidget::updateAllLifecyclePhases(), expect to get this n
otification |
374 // unless the view did not need a layout. | 374 // unless the view did not need a layout. |
375 void layoutUpdated(WebLocalFrameImpl*); | 375 void layoutUpdated(WebLocalFrameImpl*); |
376 | 376 |
377 void mainFrameDocumentElementAvailable(); | |
378 void willInsertMainFrameDocumentBody(); | |
379 void didRemoveAllPendingStylesheetsInMainFrameDocument(); | |
380 void didFinishMainFrameDocumentLoad(); | |
381 void didChangeContentsSize(); | 377 void didChangeContentsSize(); |
382 void pageScaleFactorChanged(); | 378 void pageScaleFactorChanged(); |
383 | 379 |
384 // Returns true if popup menus should be rendered by the browser, false if | 380 // Returns true if popup menus should be rendered by the browser, false if |
385 // they should be rendered by WebKit (which is the default). | 381 // they should be rendered by WebKit (which is the default). |
386 static bool useExternalPopupMenus(); | 382 static bool useExternalPopupMenus(); |
387 | 383 |
388 bool shouldAutoResize() const | 384 bool shouldAutoResize() const |
389 { | 385 { |
390 return m_shouldAutoResize; | 386 return m_shouldAutoResize; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 | 525 |
530 private: | 526 private: |
531 InspectorOverlay* inspectorOverlay(); | 527 InspectorOverlay* inspectorOverlay(); |
532 | 528 |
533 void setPageScaleFactorAndLocation(float, const FloatPoint&); | 529 void setPageScaleFactorAndLocation(float, const FloatPoint&); |
534 | 530 |
535 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& visualViewportOrigin); | 531 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& visualViewportOrigin); |
536 | 532 |
537 float maximumLegiblePageScale() const; | 533 float maximumLegiblePageScale() const; |
538 void refreshPageScaleFactorAfterLayout(); | 534 void refreshPageScaleFactorAfterLayout(); |
539 void resumeTreeViewCommitsIfRenderingReady(); | |
540 IntSize contentsSize() const; | 535 IntSize contentsSize() const; |
541 | 536 |
542 void performResize(); | 537 void performResize(); |
543 void resizeViewWhileAnchored(FrameView*); | 538 void resizeViewWhileAnchored(FrameView*); |
544 | 539 |
545 friend class WebView; // So WebView::Create can call our constructor | 540 friend class WebView; // So WebView::Create can call our constructor |
546 friend class WTF::RefCounted<WebViewImpl>; | 541 friend class WTF::RefCounted<WebViewImpl>; |
547 friend void setCurrentInputEventForTest(const WebInputEvent*); | 542 friend void setCurrentInputEventForTest(const WebInputEvent*); |
548 | 543 |
549 enum DragAction { | 544 enum DragAction { |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 }; | 753 }; |
759 | 754 |
760 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 755 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
761 // We have no ways to check if the specified WebView is an instance of | 756 // We have no ways to check if the specified WebView is an instance of |
762 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 757 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
763 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 758 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
764 | 759 |
765 } // namespace blink | 760 } // namespace blink |
766 | 761 |
767 #endif | 762 #endif |
OLD | NEW |