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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2177333002: Move setWindowRect and windowRect calls from WebViewClient to WebWidgetClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change CHECK to a DCHECK Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 2042 matching lines...) Expand 10 before | Expand all | Expand 10 after
2053 2053
2054 void RenderViewImpl::setToolTipText(const blink::WebString& text, 2054 void RenderViewImpl::setToolTipText(const blink::WebString& text,
2055 blink::WebTextDirection hint) { 2055 blink::WebTextDirection hint) {
2056 RenderWidget::setToolTipText(text, hint); 2056 RenderWidget::setToolTipText(text, hint);
2057 } 2057 }
2058 2058
2059 void RenderViewImpl::setTouchAction(blink::WebTouchAction touchAction) { 2059 void RenderViewImpl::setTouchAction(blink::WebTouchAction touchAction) {
2060 RenderWidget::setTouchAction(touchAction); 2060 RenderWidget::setTouchAction(touchAction);
2061 } 2061 }
2062 2062
2063 void RenderViewImpl::setWindowRect(const blink::WebRect& rect) {
2064 RenderWidget::setWindowRect(rect);
2065 }
2066
2067 void RenderViewImpl::showImeIfNeeded() { 2063 void RenderViewImpl::showImeIfNeeded() {
2068 RenderWidget::showImeIfNeeded(); 2064 RenderWidget::showImeIfNeeded();
2069 } 2065 }
2070 2066
2071 void RenderViewImpl::showUnhandledTapUIIfNeeded( 2067 void RenderViewImpl::showUnhandledTapUIIfNeeded(
2072 const blink::WebPoint& tappedPosition, 2068 const blink::WebPoint& tappedPosition,
2073 const blink::WebNode& tappedNode, 2069 const blink::WebNode& tappedNode,
2074 bool pageChanged) { 2070 bool pageChanged) {
2075 RenderWidget::showUnhandledTapUIIfNeeded(tappedPosition, tappedNode, 2071 RenderWidget::showUnhandledTapUIIfNeeded(tappedPosition, tappedNode,
2076 pageChanged); 2072 pageChanged);
2077 } 2073 }
2078 2074
2079 blink::WebRect RenderViewImpl::windowRect() {
2080 return RenderWidget::windowRect();
2081 }
2082
2083 blink::WebRect RenderViewImpl::windowResizerRect() { 2075 blink::WebRect RenderViewImpl::windowResizerRect() {
2084 return RenderWidget::windowResizerRect(); 2076 return RenderWidget::windowResizerRect();
2085 } 2077 }
2086 2078
2087 blink::WebWidgetClient* RenderViewImpl::widgetClient() { 2079 blink::WebWidgetClient* RenderViewImpl::widgetClient() {
2088 return static_cast<RenderWidget*>(this); 2080 return static_cast<RenderWidget*>(this);
2089 } 2081 }
2090 2082
2091 // blink::WebFrameClient ----------------------------------------------------- 2083 // blink::WebFrameClient -----------------------------------------------------
2092 2084
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
3089 return render_frame->focused_pepper_plugin(); 3081 return render_frame->focused_pepper_plugin();
3090 } 3082 }
3091 frame = frame->traverseNext(false); 3083 frame = frame->traverseNext(false);
3092 } 3084 }
3093 3085
3094 return nullptr; 3086 return nullptr;
3095 } 3087 }
3096 #endif 3088 #endif
3097 3089
3098 } // namespace content 3090 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698