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

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

Issue 911083002: Carry out a resize even if no layout has been performed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Minor changes in unit test Created 5 years, 10 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
« no previous file with comments | « no previous file | 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 bool sendContextMenuEvent(const WebKeyboardEvent&); 365 bool sendContextMenuEvent(const WebKeyboardEvent&);
366 366
367 void showContextMenuAtPoint(float x, float y, PassRefPtrWillBeRawPtr<Context MenuProvider>); 367 void showContextMenuAtPoint(float x, float y, PassRefPtrWillBeRawPtr<Context MenuProvider>);
368 368
369 // Notifies the WebView that a load has been committed. isNewNavigation 369 // Notifies the WebView that a load has been committed. isNewNavigation
370 // will be true if a new session history item should be created for that 370 // will be true if a new session history item should be created for that
371 // load. isNavigationWithinPage will be true if the navigation does 371 // load. isNavigationWithinPage will be true if the navigation does
372 // not take the user away from the current page. 372 // not take the user away from the current page.
373 void didCommitLoad(bool isNewNavigation, bool isNavigationWithinPage); 373 void didCommitLoad(bool isNewNavigation, bool isNavigationWithinPage);
374 374
375 void postLayoutResize(WebLocalFrameImpl* webframe);
376
375 // Indicates two things: 377 // Indicates two things:
376 // 1) This view may have a new layout now. 378 // 1) This view may have a new layout now.
377 // 2) Calling layout() is a no-op. 379 // 2) Calling layout() is a no-op.
378 // After calling WebWidget::layout(), expect to get this notification 380 // After calling WebWidget::layout(), expect to get this notification
379 // unless the view did not need a layout. 381 // unless the view did not need a layout.
380 void layoutUpdated(WebLocalFrameImpl*); 382 void layoutUpdated(WebLocalFrameImpl*);
381 383
382 void willInsertBody(WebLocalFrameImpl*); 384 void willInsertBody(WebLocalFrameImpl*);
383 void didRemoveAllPendingStylesheet(WebLocalFrameImpl*); 385 void didRemoveAllPendingStylesheet(WebLocalFrameImpl*);
384 void didChangeContentsSize(); 386 void didChangeContentsSize();
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 }; 775 };
774 776
775 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 777 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
776 // We have no ways to check if the specified WebView is an instance of 778 // We have no ways to check if the specified WebView is an instance of
777 // WebViewImpl because WebViewImpl is the only implementation of WebView. 779 // WebViewImpl because WebViewImpl is the only implementation of WebView.
778 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 780 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
779 781
780 } // namespace blink 782 } // namespace blink
781 783
782 #endif 784 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698