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

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

Issue 2288313002: Return the WebViewFrameWidget in RenderWidget::webwidget() if there (Closed)
Patch Set: rename webwidget_ -> webwidget_internal_ Created 4 years, 3 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 | « third_party/WebKit/Source/web/WebViewFrameWidget.cpp ('k') | no next file » | 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 bool selectionTextDirection(WebTextDirection& start, WebTextDirection& end) const override; 153 bool selectionTextDirection(WebTextDirection& start, WebTextDirection& end) const override;
154 bool isSelectionAnchorFirst() const override; 154 bool isSelectionAnchorFirst() const override;
155 WebRange caretOrSelectionRange() override; 155 WebRange caretOrSelectionRange() override;
156 void setTextDirection(WebTextDirection) override; 156 void setTextDirection(WebTextDirection) override;
157 bool isAcceleratedCompositingActive() const override; 157 bool isAcceleratedCompositingActive() const override;
158 void willCloseLayerTreeView() override; 158 void willCloseLayerTreeView() override;
159 void didAcquirePointerLock() override; 159 void didAcquirePointerLock() override;
160 void didNotAcquirePointerLock() override; 160 void didNotAcquirePointerLock() override;
161 void didLosePointerLock() override; 161 void didLosePointerLock() override;
162 void didChangeWindowResizerRect() override; 162 void didChangeWindowResizerRect() override;
163 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override;
164 void applyReplacementRange(const WebRange&) override;
165 163
166 // WebView methods: 164 // WebView methods:
167 virtual bool isWebView() const { return true; } 165 virtual bool isWebView() const { return true; }
168 void setMainFrame(WebFrame*) override; 166 void setMainFrame(WebFrame*) override;
169 void setCredentialManagerClient(WebCredentialManagerClient*) override; 167 void setCredentialManagerClient(WebCredentialManagerClient*) override;
170 void setPrerendererClient(WebPrerendererClient*) override; 168 void setPrerendererClient(WebPrerendererClient*) override;
171 void setSpellCheckClient(WebSpellCheckClient*) override; 169 void setSpellCheckClient(WebSpellCheckClient*) override;
172 WebSettings* settings() override; 170 WebSettings* settings() override;
173 WebString pageEncoding() const override; 171 WebString pageEncoding() const override;
174 bool tabsToLinks() const override; 172 bool tabsToLinks() const override;
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 533
536 void performResize(); 534 void performResize();
537 void resizeViewWhileAnchored(FrameView*, float topControlsHeight, bool topCo ntrolsShrinkLayout); 535 void resizeViewWhileAnchored(FrameView*, float topControlsHeight, bool topCo ntrolsShrinkLayout);
538 536
539 // Overrides the compositor visibility. See the description of 537 // Overrides the compositor visibility. See the description of
540 // m_overrideCompositorVisibility for more details. 538 // m_overrideCompositorVisibility for more details.
541 void setCompositorVisibility(bool); 539 void setCompositorVisibility(bool);
542 540
543 // TODO(lfg): Remove once WebViewFrameWidget is deleted. 541 // TODO(lfg): Remove once WebViewFrameWidget is deleted.
544 void scheduleAnimationForWidget(); 542 void scheduleAnimationForWidget();
543 bool getCompositionCharacterBounds(WebVector<WebRect>&) override;
544 void applyReplacementRange(const WebRange&) override;
545 545
546 friend class WebView; // So WebView::Create can call our constructor 546 friend class WebView; // So WebView::Create can call our constructor
547 friend class WebViewFrameWidget; 547 friend class WebViewFrameWidget;
548 friend class WTF::RefCounted<WebViewImpl>; 548 friend class WTF::RefCounted<WebViewImpl>;
549 friend void setCurrentInputEventForTest(const WebInputEvent*); 549 friend void setCurrentInputEventForTest(const WebInputEvent*);
550 550
551 enum DragAction { 551 enum DragAction {
552 DragEnter, 552 DragEnter,
553 DragOver 553 DragOver
554 }; 554 };
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; 779 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
780 }; 780 };
781 781
782 // We have no ways to check if the specified WebView is an instance of 782 // We have no ways to check if the specified WebView is an instance of
783 // WebViewImpl because WebViewImpl is the only implementation of WebView. 783 // WebViewImpl because WebViewImpl is the only implementation of WebView.
784 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 784 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
785 785
786 } // namespace blink 786 } // namespace blink
787 787
788 #endif 788 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewFrameWidget.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698