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

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

Issue 7461059: Fullscreen JS API implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments Created 9 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 | Annotate | Revision Log
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.h" 5 #include "content/renderer/render_view.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 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 } 1669 }
1670 1670
1671 void RenderView::enterFullscreenForNode(const WebKit::WebNode& node) { 1671 void RenderView::enterFullscreenForNode(const WebKit::WebNode& node) {
1672 NOTIMPLEMENTED(); 1672 NOTIMPLEMENTED();
1673 } 1673 }
1674 1674
1675 void RenderView::exitFullscreenForNode(const WebKit::WebNode& node) { 1675 void RenderView::exitFullscreenForNode(const WebKit::WebNode& node) {
1676 NOTIMPLEMENTED(); 1676 NOTIMPLEMENTED();
1677 } 1677 }
1678 1678
1679 void RenderView::enterFullscreenForElement() {
1680 Send(new ViewHostMsg_EnterFullscreenForElement(routing_id_));
1681 }
1682
1683 void RenderView::exitFullscreenForElement() {
1684 Send(new ViewHostMsg_ExitFullscreenForElement(routing_id_));
1685 }
1686
1679 void RenderView::setStatusText(const WebString& text) { 1687 void RenderView::setStatusText(const WebString& text) {
1680 } 1688 }
1681 1689
1682 void RenderView::UpdateTargetURL(const GURL& url, const GURL& fallback_url) { 1690 void RenderView::UpdateTargetURL(const GURL& url, const GURL& fallback_url) {
1683 GURL latest_url = url.is_empty() ? fallback_url : url; 1691 GURL latest_url = url.is_empty() ? fallback_url : url;
1684 if (latest_url == target_url_) 1692 if (latest_url == target_url_)
1685 return; 1693 return;
1686 1694
1687 // Tell the browser to display a destination link. 1695 // Tell the browser to display a destination link.
1688 if (target_url_status_ == TARGET_INFLIGHT || 1696 if (target_url_status_ == TARGET_INFLIGHT ||
(...skipping 2613 matching lines...) Expand 10 before | Expand all | Expand 10 after
4302 } 4310 }
4303 #endif 4311 #endif
4304 4312
4305 void RenderView::OnContextMenuClosed( 4313 void RenderView::OnContextMenuClosed(
4306 const webkit_glue::CustomContextMenuContext& custom_context) { 4314 const webkit_glue::CustomContextMenuContext& custom_context) {
4307 if (custom_context.is_pepper_menu) 4315 if (custom_context.is_pepper_menu)
4308 pepper_delegate_.OnContextMenuClosed(custom_context); 4316 pepper_delegate_.OnContextMenuClosed(custom_context);
4309 else 4317 else
4310 context_menu_node_.reset(); 4318 context_menu_node_.reset();
4311 } 4319 }
OLDNEW
« content/renderer/render_view.h ('K') | « content/renderer/render_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698