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

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

Issue 8872046: Remove some now unused fullscreen plumbing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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 | « content/common/view_messages.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 IPC_MESSAGE_HANDLER(ViewMsg_CopyImageAt, OnCopyImageAt) 620 IPC_MESSAGE_HANDLER(ViewMsg_CopyImageAt, OnCopyImageAt)
621 IPC_MESSAGE_HANDLER(ViewMsg_ExecuteEditCommand, OnExecuteEditCommand) 621 IPC_MESSAGE_HANDLER(ViewMsg_ExecuteEditCommand, OnExecuteEditCommand)
622 IPC_MESSAGE_HANDLER(ViewMsg_Find, OnFind) 622 IPC_MESSAGE_HANDLER(ViewMsg_Find, OnFind)
623 IPC_MESSAGE_HANDLER(ViewMsg_StopFinding, OnStopFinding) 623 IPC_MESSAGE_HANDLER(ViewMsg_StopFinding, OnStopFinding)
624 IPC_MESSAGE_HANDLER(ViewMsg_FindReplyACK, OnFindReplyAck) 624 IPC_MESSAGE_HANDLER(ViewMsg_FindReplyACK, OnFindReplyAck)
625 IPC_MESSAGE_HANDLER(ViewMsg_Zoom, OnZoom) 625 IPC_MESSAGE_HANDLER(ViewMsg_Zoom, OnZoom)
626 IPC_MESSAGE_HANDLER(ViewMsg_SetZoomLevel, OnSetZoomLevel) 626 IPC_MESSAGE_HANDLER(ViewMsg_SetZoomLevel, OnSetZoomLevel)
627 IPC_MESSAGE_HANDLER(ViewMsg_ZoomFactor, OnZoomFactor) 627 IPC_MESSAGE_HANDLER(ViewMsg_ZoomFactor, OnZoomFactor)
628 IPC_MESSAGE_HANDLER(ViewMsg_SetZoomLevelForLoadingURL, 628 IPC_MESSAGE_HANDLER(ViewMsg_SetZoomLevelForLoadingURL,
629 OnSetZoomLevelForLoadingURL) 629 OnSetZoomLevelForLoadingURL)
630 IPC_MESSAGE_HANDLER(ViewMsg_ExitFullscreen, OnExitFullscreen)
631 IPC_MESSAGE_HANDLER(ViewMsg_SetPageEncoding, OnSetPageEncoding) 630 IPC_MESSAGE_HANDLER(ViewMsg_SetPageEncoding, OnSetPageEncoding)
632 IPC_MESSAGE_HANDLER(ViewMsg_ResetPageEncodingToDefault, 631 IPC_MESSAGE_HANDLER(ViewMsg_ResetPageEncodingToDefault,
633 OnResetPageEncodingToDefault) 632 OnResetPageEncodingToDefault)
634 IPC_MESSAGE_HANDLER(ViewMsg_ScriptEvalRequest, OnScriptEvalRequest) 633 IPC_MESSAGE_HANDLER(ViewMsg_ScriptEvalRequest, OnScriptEvalRequest)
635 IPC_MESSAGE_HANDLER(ViewMsg_CSSInsertRequest, OnCSSInsertRequest) 634 IPC_MESSAGE_HANDLER(ViewMsg_CSSInsertRequest, OnCSSInsertRequest)
636 IPC_MESSAGE_HANDLER(ViewMsg_ReservePageIDRange, OnReservePageIDRange) 635 IPC_MESSAGE_HANDLER(ViewMsg_ReservePageIDRange, OnReservePageIDRange)
637 IPC_MESSAGE_HANDLER(DragMsg_TargetDragEnter, OnDragTargetDragEnter) 636 IPC_MESSAGE_HANDLER(DragMsg_TargetDragEnter, OnDragTargetDragEnter)
638 IPC_MESSAGE_HANDLER(DragMsg_TargetDragOver, OnDragTargetDragOver) 637 IPC_MESSAGE_HANDLER(DragMsg_TargetDragOver, OnDragTargetDragOver)
639 IPC_MESSAGE_HANDLER(DragMsg_TargetDragLeave, OnDragTargetDragLeave) 638 IPC_MESSAGE_HANDLER(DragMsg_TargetDragLeave, OnDragTargetDragLeave)
640 IPC_MESSAGE_HANDLER(DragMsg_TargetDrop, OnDragTargetDrop) 639 IPC_MESSAGE_HANDLER(DragMsg_TargetDrop, OnDragTargetDrop)
(...skipping 3072 matching lines...) Expand 10 before | Expand all | Expand 10 after
3713 webview()->hidePopups(); 3712 webview()->hidePopups();
3714 webview()->setZoomLevel(false, zoom_level); 3713 webview()->setZoomLevel(false, zoom_level);
3715 zoomLevelChanged(); 3714 zoomLevelChanged();
3716 } 3715 }
3717 3716
3718 void RenderViewImpl::OnSetZoomLevelForLoadingURL(const GURL& url, 3717 void RenderViewImpl::OnSetZoomLevelForLoadingURL(const GURL& url,
3719 double zoom_level) { 3718 double zoom_level) {
3720 host_zoom_levels_[url] = zoom_level; 3719 host_zoom_levels_[url] = zoom_level;
3721 } 3720 }
3722 3721
3723 void RenderViewImpl::OnExitFullscreen() {
3724 // TODO(darin): Remove this IPC once WebKit has been updated.
3725 #ifndef WEBKIT_HAS_NEW_FULLSCREEN_API
3726 webview()->exitFullscreen();
3727 #endif
3728 }
3729
3730 void RenderViewImpl::OnSetPageEncoding(const std::string& encoding_name) { 3722 void RenderViewImpl::OnSetPageEncoding(const std::string& encoding_name) {
3731 webview()->setPageEncoding(WebString::fromUTF8(encoding_name)); 3723 webview()->setPageEncoding(WebString::fromUTF8(encoding_name));
3732 } 3724 }
3733 3725
3734 void RenderViewImpl::OnResetPageEncodingToDefault() { 3726 void RenderViewImpl::OnResetPageEncodingToDefault() {
3735 WebString no_encoding; 3727 WebString no_encoding;
3736 webview()->setPageEncoding(no_encoding); 3728 webview()->setPageEncoding(no_encoding);
3737 } 3729 }
3738 3730
3739 WebFrame* RenderViewImpl::GetChildFrame(const string16& xpath) const { 3731 WebFrame* RenderViewImpl::GetChildFrame(const string16& xpath) const {
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
4788 return !!RenderThreadImpl::current()->compositor_thread(); 4780 return !!RenderThreadImpl::current()->compositor_thread();
4789 } 4781 }
4790 4782
4791 void RenderViewImpl::OnJavaBridgeInit( 4783 void RenderViewImpl::OnJavaBridgeInit(
4792 const IPC::ChannelHandle& channel_handle) { 4784 const IPC::ChannelHandle& channel_handle) {
4793 DCHECK(!java_bridge_dispatcher_.get()); 4785 DCHECK(!java_bridge_dispatcher_.get());
4794 #if defined(ENABLE_JAVA_BRIDGE) 4786 #if defined(ENABLE_JAVA_BRIDGE)
4795 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this, channel_handle)); 4787 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this, channel_handle));
4796 #endif 4788 #endif
4797 } 4789 }
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698