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

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

Issue 380303003: Enable resize and layout for frames with RemoteFrame ancestors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed DeferUpdatePageInfo problem Created 6 years, 5 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/PageWidgetDelegate.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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 316
317 // FIXME: Temporary method to accommodate out-of-process frame ancestors;
318 // will be removed when there can be multiple WebWidgets for a single page.
319 WebLocalFrameImpl* localFrameRootTemporary();
320
317 // Event related methods: 321 // Event related methods:
318 void mouseContextMenu(const WebMouseEvent&); 322 void mouseContextMenu(const WebMouseEvent&);
319 void mouseDoubleClick(const WebMouseEvent&); 323 void mouseDoubleClick(const WebMouseEvent&);
320 324
321 bool detectContentOnTouch(const WebPoint&); 325 bool detectContentOnTouch(const WebPoint&);
322 bool startPageScaleAnimation(const WebCore::IntPoint& targetPosition, bool u seAnchor, float newScale, double durationInSeconds); 326 bool startPageScaleAnimation(const WebCore::IntPoint& targetPosition, bool u seAnchor, float newScale, double durationInSeconds);
323 327
324 void hasTouchEventHandlers(bool); 328 void hasTouchEventHandlers(bool);
325 329
326 // WebGestureCurveTarget implementation for fling. 330 // WebGestureCurveTarget implementation for fling.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 void refreshPageScaleFactorAfterLayout(); 496 void refreshPageScaleFactorAfterLayout();
493 void resumeTreeViewCommits(); 497 void resumeTreeViewCommits();
494 void setUserAgentPageScaleConstraints(WebCore::PageScaleConstraints newConst raints); 498 void setUserAgentPageScaleConstraints(WebCore::PageScaleConstraints newConst raints);
495 float clampPageScaleFactorToLimits(float) const; 499 float clampPageScaleFactorToLimits(float) const;
496 WebCore::IntSize contentsSize() const; 500 WebCore::IntSize contentsSize() const;
497 501
498 void resetSavedScrollAndScaleState(); 502 void resetSavedScrollAndScaleState();
499 503
500 void updateMainFrameScrollPosition(const WebCore::IntPoint& scrollPosition, bool programmaticScroll); 504 void updateMainFrameScrollPosition(const WebCore::IntPoint& scrollPosition, bool programmaticScroll);
501 505
506 void performResize();
507
502 friend class WebView; // So WebView::Create can call our constructor 508 friend class WebView; // So WebView::Create can call our constructor
503 friend class WTF::RefCounted<WebViewImpl>; 509 friend class WTF::RefCounted<WebViewImpl>;
504 friend void setCurrentInputEventForTest(const WebInputEvent*); 510 friend void setCurrentInputEventForTest(const WebInputEvent*);
505 511
506 enum DragAction { 512 enum DragAction {
507 DragEnter, 513 DragEnter,
508 DragOver 514 DragOver
509 }; 515 };
510 516
511 explicit WebViewImpl(WebViewClient*); 517 explicit WebViewImpl(WebViewClient*);
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 bool m_userGestureObserved; 720 bool m_userGestureObserved;
715 }; 721 };
716 722
717 // We have no ways to check if the specified WebView is an instance of 723 // We have no ways to check if the specified WebView is an instance of
718 // WebViewImpl because WebViewImpl is the only implementation of WebView. 724 // WebViewImpl because WebViewImpl is the only implementation of WebView.
719 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 725 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
720 726
721 } // namespace blink 727 } // namespace blink
722 728
723 #endif 729 #endif
OLDNEW
« no previous file with comments | « Source/web/PageWidgetDelegate.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698