| 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 | 377 |
| 378 // Indicates two things: | 378 // Indicates two things: |
| 379 // 1) This view may have a new layout now. | 379 // 1) This view may have a new layout now. |
| 380 // 2) Calling layout() is a no-op. | 380 // 2) Calling layout() is a no-op. |
| 381 // After calling WebWidget::layout(), expect to get this notification | 381 // After calling WebWidget::layout(), expect to get this notification |
| 382 // unless the view did not need a layout. | 382 // unless the view did not need a layout. |
| 383 void layoutUpdated(WebLocalFrameImpl*); | 383 void layoutUpdated(WebLocalFrameImpl*); |
| 384 | 384 |
| 385 void willInsertBody(WebLocalFrameImpl*); | 385 void willInsertBody(WebLocalFrameImpl*); |
| 386 void didRemoveAllPendingStylesheet(WebLocalFrameImpl*); | 386 void didRemoveAllPendingStylesheet(WebLocalFrameImpl*); |
| 387 void didFinishDocumentLoad(WebLocalFrameImpl*); |
| 387 void didChangeContentsSize(); | 388 void didChangeContentsSize(); |
| 388 void pageScaleFactorChanged(); | 389 void pageScaleFactorChanged(); |
| 389 | 390 |
| 390 // Returns true if popup menus should be rendered by the browser, false if | 391 // Returns true if popup menus should be rendered by the browser, false if |
| 391 // they should be rendered by WebKit (which is the default). | 392 // they should be rendered by WebKit (which is the default). |
| 392 static bool useExternalPopupMenus(); | 393 static bool useExternalPopupMenus(); |
| 393 | 394 |
| 394 bool contextMenuAllowed() const | 395 bool contextMenuAllowed() const |
| 395 { | 396 { |
| 396 return m_contextMenuAllowed; | 397 return m_contextMenuAllowed; |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 }; | 761 }; |
| 761 | 762 |
| 762 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 763 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
| 763 // We have no ways to check if the specified WebView is an instance of | 764 // We have no ways to check if the specified WebView is an instance of |
| 764 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 765 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 765 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 766 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 766 | 767 |
| 767 } // namespace blink | 768 } // namespace blink |
| 768 | 769 |
| 769 #endif | 770 #endif |
| OLD | NEW |