Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: Source/web/WebViewImpl.h

Issue 1292143003: Don't resume commits after every layout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Always resume commits after the main document has finished parsing. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698